Fix eject-page script
This commit is contained in:
@ -225,15 +225,16 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
|
|||||||
` switch (kcContext.pageId) {`,
|
` switch (kcContext.pageId) {`,
|
||||||
` // ...`,
|
` // ...`,
|
||||||
`+ case "${pageIdOrComponent}": return (`,
|
`+ case "${pageIdOrComponent}": return (`,
|
||||||
`+ <Login`,
|
`+ <${componentBasename}`,
|
||||||
`+ {...{ kcContext, i18n, classes }}`,
|
`+ {...{ kcContext, i18n, classes }}`,
|
||||||
`+ Template={Template}`,
|
`+ Template={Template}`,
|
||||||
|
`+ doUseDefaultCss={true}`,
|
||||||
...(!componentCode.includes(userProfileFormFieldComponentName)
|
...(!componentCode.includes(userProfileFormFieldComponentName)
|
||||||
? []
|
? []
|
||||||
: [
|
: [
|
||||||
`+ ${userProfileFormFieldComponentName}={${userProfileFormFieldComponentName}}`
|
`+ ${userProfileFormFieldComponentName}={${userProfileFormFieldComponentName}}`,
|
||||||
|
`+ doMakeUserConfirmPassword={doMakeUserConfirmPassword}`
|
||||||
]),
|
]),
|
||||||
`+ doUseDefaultCss={true}`,
|
|
||||||
`+ />`,
|
`+ />`,
|
||||||
`+ );`,
|
`+ );`,
|
||||||
` default: return <Fallback /* .. */ />;`,
|
` default: return <Fallback /* .. */ />;`,
|
||||||
|
Reference in New Issue
Block a user