Add sidebar image option

This commit is contained in:
jeffvli
2022-10-26 21:44:25 -07:00
parent 17258e950e
commit 88e716b970
4 changed files with 289 additions and 134 deletions
+7
View File
@@ -5,14 +5,19 @@ import { Platform } from '@/renderer/types';
type SidebarProps = {
expanded: string[];
image: boolean;
leftWidth: string;
rightExpanded: boolean;
rightWidth: string;
};
export interface AppState {
platform: Platform;
sidebar: {
expanded: string[];
image: boolean;
leftWidth: string;
rightExpanded: boolean;
rightWidth: string;
};
}
@@ -37,7 +42,9 @@ export const useAppStore = create<AppSlice>()(
},
sidebar: {
expanded: [],
image: false,
leftWidth: '230px',
rightExpanded: false,
rightWidth: '230px',
},
})),