aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UIStore.ts
diff options
context:
space:
mode:
authorLibravatar Ricardo Cino <ricardo@cino.io>2022-07-07 09:31:50 +0200
committerLibravatar GitHub <noreply@github.com>2022-07-07 09:31:50 +0200
commit71c52373f81cace664047edd19d9d289f45a4dff (patch)
tree69b3f1d45a8b3f1ceab9497ea3c96e9dc18e3166 /src/stores/UIStore.ts
parent6.0.0-nightly.91 [skip ci] (diff)
downloadferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.tar.gz
ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.tar.zst
ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.zip
chore: Mobx & React-Router upgrade (#406)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/stores/UIStore.ts')
-rw-r--r--src/stores/UIStore.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/UIStore.ts b/src/stores/UIStore.ts
index c43c6d8c7..e0589729f 100644
--- a/src/stores/UIStore.ts
+++ b/src/stores/UIStore.ts
@@ -1,4 +1,4 @@
1import { action, observable, computed, reaction } from 'mobx'; 1import { action, observable, computed, reaction, makeObservable } from 'mobx';
2import { nativeTheme } from '@electron/remote'; 2import { nativeTheme } from '@electron/remote';
3 3
4import { Stores } from '../@types/stores.types'; 4import { Stores } from '../@types/stores.types';
@@ -14,6 +14,9 @@ export default class UIStore extends TypedStore {
14 14
15 constructor(stores: Stores, api: ApiInterface, actions: Actions) { 15 constructor(stores: Stores, api: ApiInterface, actions: Actions) {
16 super(stores, api, actions); 16 super(stores, api, actions);
17
18 makeObservable(this);
19
17 // Register action handlers 20 // Register action handlers
18 this.actions.ui.openSettings.listen(this._openSettings.bind(this)); 21 this.actions.ui.openSettings.listen(this._openSettings.bind(this));
19 this.actions.ui.closeSettings.listen(this._closeSettings.bind(this)); 22 this.actions.ui.closeSettings.listen(this._closeSettings.bind(this));