Change sidebar to be pinned by default

Signed-off-by: sblausten <sam@roadie.io>
This commit is contained in:
sblausten
2021-11-18 18:25:43 +01:00
parent fb03c47c8b
commit bfa5957669
2 changed files with 3 additions and 3 deletions
@@ -49,7 +49,7 @@ export type SidebarPinStateContextType = {
export const SidebarPinStateContext = createContext<SidebarPinStateContextType>(
{
isPinned: false,
isPinned: true,
toggleSidebarPinState: () => {},
},
);
@@ -24,10 +24,10 @@ export const LocalStorage = {
try {
value = JSON.parse(
window.localStorage.getItem(LocalStorageKeys.SIDEBAR_PIN_STATE) ||
'false',
'true',
);
} catch {
return false;
return true;
}
return !!value;
},