Hide navigator button on mobile devices

This commit is contained in:
dominik-zeglen 2020-09-25 17:27:50 +02:00
parent 80c57ae0c0
commit 85b4d13ba2

View file

@ -439,12 +439,14 @@ const AppLayout: React.FC<AppLayoutProps> = ({ children }) => {
checked={isDark} checked={isDark}
onClick={toggleTheme} onClick={toggleTheme}
/> />
<Hidden smDown>
<NavigatorButton <NavigatorButton
isMac={navigator.platform isMac={navigator.platform
.toLowerCase() .toLowerCase()
.includes("mac")} .includes("mac")}
onClick={() => setNavigatorVisibility(true)} onClick={() => setNavigatorVisibility(true)}
/> />
</Hidden>
<div className={classes.userMenuContainer} ref={anchor}> <div className={classes.userMenuContainer} ref={anchor}>
<Chip <Chip
avatar={ avatar={