Skip to content

Commit 5adcd0a

Browse files
samhere06mohas22tumms2021389
authored
fix: Invalid portal theming issues (#513)
* updated based on new theme --------- Co-authored-by: mohas22 <[email protected]> Co-authored-by: Siva Rama Krishna <[email protected]>
1 parent 63c87f0 commit 5adcd0a

File tree

1 file changed

+6
-2
lines changed
  • packages/react-sdk-components/src/samples/FullPortal

1 file changed

+6
-2
lines changed

packages/react-sdk-components/src/samples/FullPortal/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,18 @@ export default function FullPortal() {
152152
startPortal();
153153
};
154154

155-
return portalSelectionScreen ? (
155+
const content = portalSelectionScreen ? (
156156
<InvalidPortal defaultPortal={defaultPortalName} portals={availablePortals} onSelect={loadSelectedPortal} />
157157
) : (
158+
rootComponentProps && <RootComponent {...rootComponentProps} />
159+
);
160+
161+
return (
158162
<div id='pega-root'>
159163
<StyledEngineProvider injectFirst>
160164
<ThemeProvider theme={theme}>
161165
<CssBaseline />
162-
{rootComponentProps && <RootComponent {...rootComponentProps} />}
166+
{content}
163167
</ThemeProvider>
164168
</StyledEngineProvider>
165169
</div>

0 commit comments

Comments
 (0)