aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/RootStore.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-16 21:14:50 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-16 21:14:50 +0200
commit19cd11118cde7160cd447c81bc965007c0437479 (patch)
tree5fea613e7a46d69380995368a68cc72f186078a4 /subprojects/frontend/src/RootStore.tsx
parentchore(deps): bump frontend dependencies (diff)
downloadrefinery-19cd11118cde7160cd447c81bc965007c0437479.tar.gz
refinery-19cd11118cde7160cd447c81bc965007c0437479.tar.zst
refinery-19cd11118cde7160cd447c81bc965007c0437479.zip
refactor(frondend): improve editor store and theme
Also bumps frontend dependencies.
Diffstat (limited to 'subprojects/frontend/src/RootStore.tsx')
-rw-r--r--subprojects/frontend/src/RootStore.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/frontend/src/RootStore.tsx b/subprojects/frontend/src/RootStore.tsx
index a7406d7b..4a267b0e 100644
--- a/subprojects/frontend/src/RootStore.tsx
+++ b/subprojects/frontend/src/RootStore.tsx
@@ -4,13 +4,13 @@ import EditorStore from './editor/EditorStore';
4import ThemeStore from './theme/ThemeStore'; 4import ThemeStore from './theme/ThemeStore';
5 5
6export default class RootStore { 6export default class RootStore {
7 editorStore; 7 readonly editorStore: EditorStore;
8 8
9 themeStore; 9 readonly themeStore: ThemeStore;
10 10
11 constructor(initialValue: string) { 11 constructor(initialValue: string) {
12 this.editorStore = new EditorStore(initialValue);
12 this.themeStore = new ThemeStore(); 13 this.themeStore = new ThemeStore();
13 this.editorStore = new EditorStore(initialValue, this.themeStore);
14 } 14 }
15} 15}
16 16