diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-16 21:14:50 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-16 21:14:50 +0200 |
commit | 19cd11118cde7160cd447c81bc965007c0437479 (patch) | |
tree | 5fea613e7a46d69380995368a68cc72f186078a4 /subprojects/frontend/src/RootStore.tsx | |
parent | chore(deps): bump frontend dependencies (diff) | |
download | refinery-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.tsx | 6 |
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'; | |||
4 | import ThemeStore from './theme/ThemeStore'; | 4 | import ThemeStore from './theme/ThemeStore'; |
5 | 5 | ||
6 | export default class RootStore { | 6 | export 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 | ||