diff options
author | 2021-10-10 01:11:33 +0200 | |
---|---|---|
committer | 2021-10-31 19:26:09 +0100 | |
commit | 2ada4a06167b3a00a4c4c69e1b0c78b00ef1db5f (patch) | |
tree | 24f0b0bf8f8959ebcf0722456da2d6260c6f1421 /language-web/src/main/js/RootStore.tsx | |
parent | Merge pull request #7 from golej-marci/language-to-store (diff) | |
download | refinery-2ada4a06167b3a00a4c4c69e1b0c78b00ef1db5f.tar.gz refinery-2ada4a06167b3a00a4c4c69e1b0c78b00ef1db5f.tar.zst refinery-2ada4a06167b3a00a4c4c69e1b0c78b00ef1db5f.zip |
feat(web): add CodeMirror 6 editor
Diffstat (limited to 'language-web/src/main/js/RootStore.tsx')
-rw-r--r-- | language-web/src/main/js/RootStore.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/language-web/src/main/js/RootStore.tsx b/language-web/src/main/js/RootStore.tsx index 88b8a445..96e1b26a 100644 --- a/language-web/src/main/js/RootStore.tsx +++ b/language-web/src/main/js/RootStore.tsx | |||
@@ -8,9 +8,9 @@ export class RootStore { | |||
8 | 8 | ||
9 | themeStore; | 9 | themeStore; |
10 | 10 | ||
11 | constructor() { | 11 | constructor(initialValue: string) { |
12 | this.themeStore = new ThemeStore(); | 12 | this.themeStore = new ThemeStore(); |
13 | this.editorStore = new EditorStore(this.themeStore); | 13 | this.editorStore = new EditorStore(initialValue, this.themeStore); |
14 | } | 14 | } |
15 | } | 15 | } |
16 | 16 | ||