Rebuild TextField and CalendarField
This commit is contained in:
parent
1e77205518
commit
12004b8584
28 changed files with 783 additions and 845 deletions
|
|
@ -1,11 +1,5 @@
|
|||
import { useEffect, useState } from 'react'
|
||||
|
||||
// export { default as useSettingsStore } from './settingsStore'
|
||||
export { default as useRecentsStore } from './recentsStore'
|
||||
// export { default as useTWAStore } from './twaStore'
|
||||
// export { default as useLocaleUpdateStore } from './localeUpdateStore'
|
||||
// export { default as useTranslateStore } from './translateStore'
|
||||
|
||||
/** Helper to use a persisted store in zustand with Next js without causing a hydration error */
|
||||
export const useStore = <T, F>(
|
||||
store: (callback?: (state: T) => unknown) => unknown,
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@ type TimeFormat = '12h' | '24h'
|
|||
type Theme = 'System' | 'Light' | 'Dark'
|
||||
|
||||
interface SettingsStore {
|
||||
weekStart: number
|
||||
weekStart: 0 | 1
|
||||
timeFormat: TimeFormat
|
||||
theme: Theme
|
||||
highlight: boolean
|
||||
colormap: string
|
||||
|
||||
setWeekStart: (weekStart: number) => void
|
||||
setWeekStart: (weekStart: 0 | 1) => void
|
||||
setTimeFormat: (timeFormat: TimeFormat) => void
|
||||
setTheme: (theme: Theme) => void
|
||||
setHighlight: (highlight: boolean) => void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue