diff options
Diffstat (limited to 'packages/shared/src/stores/Config.ts')
-rw-r--r-- | packages/shared/src/stores/Config.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/shared/src/stores/Config.ts b/packages/shared/src/stores/Config.ts index 1a9f924..432945c 100644 --- a/packages/shared/src/stores/Config.ts +++ b/packages/shared/src/stores/Config.ts | |||
@@ -27,14 +27,10 @@ import { | |||
27 | 27 | ||
28 | import { themeSource } from '../schemas'; | 28 | import { themeSource } from '../schemas'; |
29 | 29 | ||
30 | export const config = types.model("Config", { | 30 | export const config = types.model('Config', { |
31 | themeSource: types.enumeration(themeSource.options), | 31 | themeSource: types.optional(types.enumeration(themeSource.options), 'system'), |
32 | }); | 32 | }); |
33 | 33 | ||
34 | export const defaultConfig: ConfigSnapshotIn = { | ||
35 | themeSource: 'system', | ||
36 | }; | ||
37 | |||
38 | export interface Config extends Instance<typeof config> {} | 34 | export interface Config extends Instance<typeof config> {} |
39 | 35 | ||
40 | export interface ConfigSnapshotIn extends SnapshotIn<typeof config> {} | 36 | export interface ConfigSnapshotIn extends SnapshotIn<typeof config> {} |