From 86f9ab693dcad951271f727046214b03d91ebd69 Mon Sep 17 00:00:00 2001 From: muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> Date: Sun, 20 Nov 2022 17:35:21 +0530 Subject: Transform Todo feature, ServiceBarTargetUrl, ServiceIcon, TeamDashboard, Slider, Loader & WorkspaceSwitchningIndicator into ts (#782) --- src/stores/FeaturesStore.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/stores') diff --git a/src/stores/FeaturesStore.ts b/src/stores/FeaturesStore.ts index 5f43ccf84..8584b6060 100644 --- a/src/stores/FeaturesStore.ts +++ b/src/stores/FeaturesStore.ts @@ -5,7 +5,6 @@ import { observable, runInAction, } from 'mobx'; - import { Stores } from '../@types/stores.types'; import { ApiInterface } from '../api'; import { Actions } from '../actions/lib/actions'; @@ -21,6 +20,14 @@ import appearance from '../features/appearance'; import TypedStore from './lib/TypedStore'; export default class FeaturesStore extends TypedStore { + @observable features = {}; + + constructor(stores: Stores, api: ApiInterface, actions: Actions) { + super(stores, api, actions); + + makeObservable(this); + } + @observable defaultFeaturesRequest = new CachedRequest( this.api.features, 'default', @@ -31,14 +38,6 @@ export default class FeaturesStore extends TypedStore { 'features', ); - @observable features = {}; - - constructor(stores: Stores, api: ApiInterface, actions: Actions) { - super(stores, api, actions); - - makeObservable(this); - } - async setup(): Promise { this.registerReactions([ this._updateFeatures, -- cgit v1.2.3-54-g00ecf