Fix eject-page script

This commit is contained in:
Joseph Garrone
2024-06-09 09:50:02 +02:00
parent 73c99d3157
commit 5d86b05cdb

View File

@ -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 /* .. */ />;`,