chore: making changes

This commit is contained in:
sriram veeraghanta 2023-12-11 15:48:59 +05:30
parent d0688e5287
commit 2c043b24de
3 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
import { observable, action, makeObservable, runInAction } from "mobx";
// types
import { RootStore } from "./root";
import { RootStore } from "../root.store";
import { IAppConfig } from "types/app";
// services
import { AppConfigService } from "services/app_config.service";

View File

@ -1,3 +1,5 @@
import { RootStore } from "../root.store";
export class AppRootStore {
config;
commandPalette;
@ -5,11 +7,11 @@ export class AppRootStore {
instance;
theme;
constructor() {
this.config = new ConfigStore();
this.commandPalette = new CommandPaletteStore();
this.eventTracker = new EventTrackerStore();
this.instance = new InstanceStore();
this.theme = new ThemeStore();
constructor(rootStore: RootStore) {
this.config = new ConfigStore(rootStore);
this.commandPalette = new CommandPaletteStore(rootStore);
this.eventTracker = new EventTrackerStore(rootStore);
this.instance = new InstanceStore(rootStore);
this.theme = new ThemeStore(rootStore);
}
}

View File

@ -5,7 +5,7 @@ import { AppRootStore } from "./application";
enableStaticRendering(typeof window === "undefined");
export class RootStore {
app;
app: AppRootStore;
user;
workspace;
project;