Open the sidebar by default
## Issue Closes "6112 Side menu expanded by default unless collapsed by user"
This commit is contained in:
parent
d6d1cf58e9
commit
315bbe21b1
1 changed files with 1 additions and 2 deletions
|
@ -12,7 +12,6 @@ import usePersistedState from 'effects/use-persisted-state';
|
|||
import { useHistory } from 'react-router';
|
||||
import { useIsMobile, useIsMediumScreen } from 'effects/use-screensize';
|
||||
import { parseURI } from 'lbry-redux';
|
||||
import { SIMPLE_SITE } from 'config';
|
||||
|
||||
export const MAIN_CLASS = 'main';
|
||||
type Props = {
|
||||
|
@ -59,7 +58,7 @@ function Page(props: Props) {
|
|||
const {
|
||||
location: { pathname },
|
||||
} = useHistory();
|
||||
const [sidebarOpen, setSidebarOpen] = usePersistedState('sidebar', !SIMPLE_SITE);
|
||||
const [sidebarOpen, setSidebarOpen] = usePersistedState('sidebar', false);
|
||||
const isMediumScreen = useIsMediumScreen();
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
|
|
Loading…
Reference in a new issue