From 1b318386a8709521e93f660bd3e80cb86dfed53e Mon Sep 17 00:00:00 2001 From: Felix Habib Date: Fri, 10 May 2024 11:35:57 +1000 Subject: [PATCH] Refactor --- src/Playroom/Toolbar/Toolbar.tsx | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/Playroom/Toolbar/Toolbar.tsx b/src/Playroom/Toolbar/Toolbar.tsx index 0e652650..85a39c5c 100644 --- a/src/Playroom/Toolbar/Toolbar.tsx +++ b/src/Playroom/Toolbar/Toolbar.tsx @@ -169,8 +169,8 @@ export default ({ themes: allThemes, widths: allWidths, snippets }: Props) => { onExited={() => setLastActivePanel(undefined)} >
- {lastActivePanel === 'snippets' && ( -
+
+ {lastActivePanel === 'snippets' && ( { @@ -190,32 +190,24 @@ export default ({ themes: allThemes, widths: allWidths, snippets }: Props) => { } }} /> -
- )} + )} - {lastActivePanel === 'frames' && ( -
+ {lastActivePanel === 'frames' && ( -
- )} + )} - {lastActivePanel === 'preview' && ( -
+ {lastActivePanel === 'preview' && ( -
- )} + )} - {lastActivePanel === 'settings' && ( -
- -
- )} + {lastActivePanel === 'settings' && } +