Przeglądaj źródła

fix: don't render library menu twice for mobile (#5636)

Aakansha Doshi 2 lat temu
rodzic
commit
8b7302e89e
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/components/LayerUI.tsx

+ 3 - 3
src/components/LayerUI.tsx

@@ -478,11 +478,11 @@ const LayerUI = ({
               {t("buttons.scrollBackToContent")}
             </button>
           )}
+          {appState.isLibraryOpen && (
+            <div className="layer-ui__sidebar">{libraryMenu}</div>
+          )}
         </div>
       )}
-      {appState.isLibraryOpen && (
-        <div className="layer-ui__sidebar">{libraryMenu}</div>
-      )}
     </>
   );
 };