Browse Source

Update LayerUI.tsx

zsviczian 2 years ago
parent
commit
c246ccf9d9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/LayerUI.tsx

+ 2 - 1
src/components/LayerUI.tsx

@@ -411,7 +411,8 @@ const LayerUI = ({
                 onClick={onCollabButtonClick}
                 onClick={onCollabButtonClick}
               />
               />
             )}
             )}
-            {renderTopRightUI?.(device.isMobile, appState)}
+            {!appState.viewModeEnabled &&
+              renderTopRightUI?.(device.isMobile, appState)}
             {!appState.viewModeEnabled && (
             {!appState.viewModeEnabled && (
               <LibraryButton appState={appState} setAppState={setAppState} />
               <LibraryButton appState={appState} setAppState={setAppState} />
             )}
             )}