mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 20:40:21 +02:00
normalize controls onto lists
This commit is contained in:
@@ -1140,4 +1140,7 @@ export const migrateSettings = (settings: SettingsState, settingsVersion: number
|
||||
useSettingsStore.persist.getOptions().migrate!(settings, settingsVersion) as SettingsState;
|
||||
|
||||
export const useListSettings = (type: ItemListKey) =>
|
||||
useSettingsStore((state) => state.lists[type as keyof typeof state.lists], shallow);
|
||||
useSettingsStore(
|
||||
(state) => state.lists[type as keyof typeof state.lists],
|
||||
shallow,
|
||||
) as ItemListSettings;
|
||||
|
||||
Reference in New Issue
Block a user