diff --git a/code/ui/manager/src/components/layout/mobile.stories.tsx b/code/ui/manager/src/components/layout/mobile.stories.tsx index ff0eb280a4c6..1a9121a8cc91 100644 --- a/code/ui/manager/src/components/layout/mobile.stories.tsx +++ b/code/ui/manager/src/components/layout/mobile.stories.tsx @@ -33,6 +33,9 @@ export const InitialCanvas = ({ props }: { props: MobileProps }) => ( export const InitialAddons = ({ props }: { props: MobileProps }) => ( ); +export const NoPanel = ({ props }: { props: MobileProps }) => ( + +); export const Fullscreen = ({ props }: { props: MobileProps }) => ( ; Sidebar: ComponentType; Preview: ComponentType; Panel: ComponentType; @@ -204,7 +200,7 @@ class Mobile extends Component { {key} ))} - {viewMode ? ( + {viewMode && options.showPanel ? ( this.setState({ active: ADDONS })} active={active === ADDONS}