Use Temporal polyfill to implement availability viewer structure

This commit is contained in:
Ben Grant 2023-05-28 12:51:33 +10:00
parent 877c4b3479
commit 756b71433c
24 changed files with 768 additions and 551 deletions

View file

@ -1,3 +1,4 @@
import { ColorMap } from 'hue-map/dist/maps'
import { create } from 'zustand'
import { persist } from 'zustand/middleware'
@ -9,13 +10,13 @@ interface SettingsStore {
timeFormat: TimeFormat
theme: Theme
highlight: boolean
colormap: string
colormap: 'crabfit' | ColorMap
setWeekStart: (weekStart: 0 | 1) => void
setTimeFormat: (timeFormat: TimeFormat) => void
setTheme: (theme: Theme) => void
setHighlight: (highlight: boolean) => void
setColormap: (colormap: string) => void
setColormap: (colormap: 'crabfit' | ColorMap) => void
}
const useSettingsStore = create<SettingsStore>()(persist(