diff options
Diffstat (limited to 'packages/main/src/stores/ServiceSettings.ts')
-rw-r--r-- | packages/main/src/stores/ServiceSettings.ts | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/packages/main/src/stores/ServiceSettings.ts b/packages/main/src/stores/ServiceSettings.ts index e6f48c6..d5c2843 100644 --- a/packages/main/src/stores/ServiceSettings.ts +++ b/packages/main/src/stores/ServiceSettings.ts | |||
@@ -18,16 +18,12 @@ | |||
18 | * SPDX-License-Identifier: AGPL-3.0-only | 18 | * SPDX-License-Identifier: AGPL-3.0-only |
19 | */ | 19 | */ |
20 | 20 | ||
21 | import { ServiceSettings as ServiceSettingsBase } from '@sophie/shared'; | 21 | import { defineServiceSettingsModel } from '@sophie/shared'; |
22 | import { Instance, types } from 'mobx-state-tree'; | 22 | import { Instance } from 'mobx-state-tree'; |
23 | 23 | ||
24 | import overrideProps from '../utils/overrideProps'; | 24 | import Profile from './Profile.js'; |
25 | 25 | ||
26 | import Profile from './Profile'; | 26 | const ServiceSettings = defineServiceSettingsModel(Profile); |
27 | |||
28 | const ServiceSettings = overrideProps(ServiceSettingsBase, { | ||
29 | profile: types.reference(Profile), | ||
30 | }); | ||
31 | 27 | ||
32 | /* | 28 | /* |
33 | eslint-disable-next-line @typescript-eslint/no-redeclare -- | 29 | eslint-disable-next-line @typescript-eslint/no-redeclare -- |