Compare commits

...

2 Commits

Author SHA1 Message Date
zsviczian
b412e742e6
Update MobileMenu.tsx 2022-11-14 18:08:19 +01:00
zsviczian
c246ccf9d9
Update LayerUI.tsx 2022-11-14 18:05:56 +01:00
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -111,8 +111,9 @@ export const MobileMenu = ({
/>
</Stack.Row>
</Island>
{renderTopRightUI && renderTopRightUI(true, appState)}
<div className="mobile-misc-tools-container">
{!appState.viewModeEnabled &&
renderTopRightUI?.(true, appState)}
<PenModeButton
checked={appState.penMode}
onChange={onPenModeToggle}