Font optimise and settings on home page
This commit is contained in:
parent
291034ca4e
commit
26c4b6629d
17 changed files with 329 additions and 43 deletions
13
crabfit-frontend/src/stores/index.ts
Normal file
13
crabfit-frontend/src/stores/index.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import create from 'zustand';
|
||||
import { persist } from 'zustand/middleware';
|
||||
|
||||
export const useSettingsStore = create(persist(
|
||||
set => ({
|
||||
weekStart: 0,
|
||||
timeFormat: '12h',
|
||||
|
||||
setWeekStart: weekStart => set({ weekStart }),
|
||||
setTimeFormat: timeFormat => set({ timeFormat }),
|
||||
}),
|
||||
{ name: 'crabfit-settings' },
|
||||
));
|
||||
Loading…
Add table
Add a link
Reference in a new issue