mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
26 lines
688 B
TypeScript
26 lines
688 B
TypeScript
|
import { enableStaticRendering } from "mobx-react-lite";
|
||
|
// stores
|
||
|
import { IThemeStore, ThemeStore } from "./theme.store";
|
||
|
import { IInstanceStore, InstanceStore } from "./instance.store";
|
||
|
import { IUserStore, UserStore } from "./user.store";
|
||
|
|
||
|
enableStaticRendering(typeof window === "undefined");
|
||
|
|
||
|
export class RootStore {
|
||
|
theme: IThemeStore;
|
||
|
instance: IInstanceStore;
|
||
|
user: IUserStore;
|
||
|
|
||
|
constructor() {
|
||
|
this.theme = new ThemeStore(this);
|
||
|
this.instance = new InstanceStore(this);
|
||
|
this.user = new UserStore(this);
|
||
|
}
|
||
|
|
||
|
resetOnSignOut() {
|
||
|
this.theme = new ThemeStore(this);
|
||
|
this.instance = new InstanceStore(this);
|
||
|
this.user = new UserStore(this);
|
||
|
}
|
||
|
}
|