mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-29 13:41:51 +02:00
Refactor sidebar display
This commit is contained in:
10
src-web/hooks/useSidebarWidth.ts
Normal file
10
src-web/hooks/useSidebarWidth.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { NAMESPACE_NO_SYNC } from '../lib/keyValueStore';
|
||||
import { useKeyValue } from './useKeyValue';
|
||||
|
||||
export function useSidebarWidth() {
|
||||
return useKeyValue<number>({
|
||||
namespace: NAMESPACE_NO_SYNC,
|
||||
key: 'sidebar_width',
|
||||
defaultValue: 200,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user