pl-fe: use more specific zustand selectors
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -181,4 +181,6 @@ const useSettingsStore = create<State>()(mutative((set) => ({
|
||||
}),
|
||||
}), { enableAutoFreeze: true }));
|
||||
|
||||
export { useSettingsStore };
|
||||
const useSettings = () => useSettingsStore().settings;
|
||||
|
||||
export { useSettingsStore, useSettings };
|
||||
|
||||
Reference in New Issue
Block a user