fix!: some custom components were not handled properly if they are RSCs (#6315)
**Breaking:** The following, exported components now need the `payload` object as a prop rather than the `config` object: - `RenderCustomComponent` (optional) - `Logo` - `DefaultTemplate` - `DefaultNav`
This commit is contained in:
@@ -18,6 +18,7 @@ export const Verify: React.FC<AdminViewProps> = async ({ initPageResult, params
|
||||
|
||||
const {
|
||||
payload: { config },
|
||||
payload,
|
||||
} = req
|
||||
|
||||
const {
|
||||
@@ -42,7 +43,7 @@ export const Verify: React.FC<AdminViewProps> = async ({ initPageResult, params
|
||||
return (
|
||||
<React.Fragment>
|
||||
<div className={`${verifyBaseClass}__brand`}>
|
||||
<Logo config={config} />
|
||||
<Logo payload={payload} />
|
||||
</div>
|
||||
<h2>{textToRender}</h2>
|
||||
</React.Fragment>
|
||||
|
||||
Reference in New Issue
Block a user