diff options
Diffstat (limited to 'packages/shared/src/stores/SharedStore.ts')
-rw-r--r-- | packages/shared/src/stores/SharedStore.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/shared/src/stores/SharedStore.ts b/packages/shared/src/stores/SharedStore.ts index 9f0afb1..cfff6d5 100644 --- a/packages/shared/src/stores/SharedStore.ts +++ b/packages/shared/src/stores/SharedStore.ts | |||
@@ -26,17 +26,13 @@ import { | |||
26 | SnapshotOut, | 26 | SnapshotOut, |
27 | } from 'mobx-state-tree'; | 27 | } from 'mobx-state-tree'; |
28 | 28 | ||
29 | import { config, defaultConfig } from './Config'; | 29 | import { config } from './Config'; |
30 | 30 | ||
31 | export const sharedStore = types.model("SharedStore", { | 31 | export const sharedStore = types.model('SharedStore', { |
32 | config, | 32 | config: types.optional(config, {}), |
33 | shouldUseDarkColors: true, | 33 | shouldUseDarkColors: true, |
34 | }); | 34 | }); |
35 | 35 | ||
36 | export const emptySharedStore: SharedStoreSnapshotIn = { | ||
37 | config: defaultConfig, | ||
38 | }; | ||
39 | |||
40 | export interface SharedStore extends Instance<typeof sharedStore> {} | 36 | export interface SharedStore extends Instance<typeof sharedStore> {} |
41 | 37 | ||
42 | export interface SharedStoreSnapshotIn extends SnapshotIn<typeof sharedStore> {} | 38 | export interface SharedStoreSnapshotIn extends SnapshotIn<typeof sharedStore> {} |