File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/react-sdk-components/src/samples/FullPortal Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -152,14 +152,16 @@ export default function FullPortal() {
152152 startPortal ( ) ;
153153 } ;
154154
155- return portalSelectionScreen ? (
156- < InvalidPortal defaultPortal = { defaultPortalName } portals = { availablePortals } onSelect = { loadSelectedPortal } />
157- ) : (
155+ return (
158156 < div id = 'pega-root' >
159157 < StyledEngineProvider injectFirst >
160158 < ThemeProvider theme = { theme } >
161159 < CssBaseline />
162- { rootComponentProps && < RootComponent { ...rootComponentProps } /> }
160+ { portalSelectionScreen ? (
161+ < InvalidPortal defaultPortal = { defaultPortalName } portals = { availablePortals } onSelect = { loadSelectedPortal } />
162+ ) : (
163+ rootComponentProps && < RootComponent { ...rootComponentProps } />
164+ ) }
163165 </ ThemeProvider >
164166 </ StyledEngineProvider >
165167 </ div >
You can’t perform that action at this time.
0 commit comments