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

This commit is contained in:
Aakansha Doshi 2022-08-29 15:44:10 +05:30 committed by GitHub
parent f9b7cfd8aa
commit 8b7302e89e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
)}
</>
);
};