Skip to content

Commit

Permalink
fix: Only nest user content inside FrameComponent in preview mode (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Oct 14, 2020
1 parent 5a745b2 commit 83f51d7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Playroom/Preview.tsx
Expand Up @@ -46,17 +46,17 @@ export default ({ themes, components, FrameComponent }: PreviewProps) => {

return (
<CatchErrors code={code}>
<FrameComponent
themeName={themeName || '__PLAYROOM__NO_THEME__'}
theme={resolvedTheme}
>
<div className={styles.renderContainer}>
<div className={styles.renderContainer}>
<FrameComponent
themeName={themeName || '__PLAYROOM__NO_THEME__'}
theme={resolvedTheme}
>
<RenderCode code={code} scope={components} />
</div>
<div className={styles.splashScreenContainer}>
<SplashScreen />
</div>
</FrameComponent>
</FrameComponent>
</div>
<div className={styles.splashScreenContainer}>
<SplashScreen />
</div>
</CatchErrors>
);
};

0 comments on commit 83f51d7

Please sign in to comment.