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:
Alessio Gravili
2024-05-13 12:05:13 -04:00
committed by GitHub
parent 23c7ab2bc4
commit 0d98b4b96f
16 changed files with 94 additions and 38 deletions

View File

@@ -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>