Font optimise and settings on home page

This commit is contained in:
Ben Grant 2021-03-11 01:27:01 +11:00
parent 291034ca4e
commit 26c4b6629d
17 changed files with 329 additions and 43 deletions

View 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' },
));