diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 2d871508..2db1786b 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -381,7 +381,7 @@ const LayerUI = ({ ); }; - const dialogs = ( + return ( <> {appState.isLoading && } {appState.errorMessage && ( @@ -409,82 +409,77 @@ const LayerUI = ({ } /> )} - - ); - - return device.isMobile ? ( - <> - {dialogs} - onLockToggle()} - onPenModeToggle={onPenModeToggle} - canvas={canvas} - isCollaborating={isCollaborating} - renderCustomFooter={renderCustomFooter} - showThemeBtn={showThemeBtn} - onImageAction={onImageAction} - renderTopRightUI={renderTopRightUI} - renderCustomStats={renderCustomStats} - /> - - ) : ( - <> -
- {dialogs} - {renderFixedSideContainer()} -
onLockToggle()} + onPenModeToggle={onPenModeToggle} + canvas={canvas} + isCollaborating={isCollaborating} renderCustomFooter={renderCustomFooter} - showExitZenModeBtn={showExitZenModeBtn} + showThemeBtn={showThemeBtn} + onImageAction={onImageAction} + renderTopRightUI={renderTopRightUI} + renderCustomStats={renderCustomStats} /> - {appState.showStats && ( - + {renderFixedSideContainer()} +
{ - actionManager.executeAction(actionToggleStats); - }} - renderCustomStats={renderCustomStats} + actionManager={actionManager} + renderCustomFooter={renderCustomFooter} + showExitZenModeBtn={showExitZenModeBtn} /> - )} - {appState.scrolledOutside && ( - - )} -
+ {appState.showStats && ( + { + actionManager.executeAction(actionToggleStats); + }} + renderCustomStats={renderCustomStats} + /> + )} + {appState.scrolledOutside && ( + + )} + + )} {appState.isLibraryOpen && (
{libraryMenu}
)}