aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/WorkArea.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-12 21:59:50 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-12 21:59:50 +0200
commita2a4696fdbd6440269d576aeba7b25b2ea40d9bf (patch)
tree5cbdf981a51a09fbe162e7748555d213ca518ff4 /subprojects/frontend/src/WorkArea.tsx
parentfix: avoid GLOP error message on stderr (diff)
downloadrefinery-a2a4696fdbd6440269d576aeba7b25b2ea40d9bf.tar.gz
refinery-a2a4696fdbd6440269d576aeba7b25b2ea40d9bf.tar.zst
refinery-a2a4696fdbd6440269d576aeba7b25b2ea40d9bf.zip
feat: connect model generator to UI
Diffstat (limited to 'subprojects/frontend/src/WorkArea.tsx')
-rw-r--r--subprojects/frontend/src/WorkArea.tsx12
1 files changed, 2 insertions, 10 deletions
diff --git a/subprojects/frontend/src/WorkArea.tsx b/subprojects/frontend/src/WorkArea.tsx
index adb29a50..a1fbf7dc 100644
--- a/subprojects/frontend/src/WorkArea.tsx
+++ b/subprojects/frontend/src/WorkArea.tsx
@@ -7,10 +7,9 @@
7import { observer } from 'mobx-react-lite'; 7import { observer } from 'mobx-react-lite';
8 8
9import DirectionalSplitPane from './DirectionalSplitPane'; 9import DirectionalSplitPane from './DirectionalSplitPane';
10import ModelWorkArea from './ModelWorkArea';
10import { useRootStore } from './RootStoreProvider'; 11import { useRootStore } from './RootStoreProvider';
11import EditorPane from './editor/EditorPane'; 12import EditorPane from './editor/EditorPane';
12import GraphPane from './graph/GraphPane';
13import TablePane from './table/TablePane';
14 13
15export default observer(function WorkArea(): JSX.Element { 14export default observer(function WorkArea(): JSX.Element {
16 const { themeStore } = useRootStore(); 15 const { themeStore } = useRootStore();
@@ -18,14 +17,7 @@ export default observer(function WorkArea(): JSX.Element {
18 return ( 17 return (
19 <DirectionalSplitPane 18 <DirectionalSplitPane
20 primary={<EditorPane />} 19 primary={<EditorPane />}
21 secondary={ 20 secondary={<ModelWorkArea />}
22 <DirectionalSplitPane
23 primary={<GraphPane />}
24 secondary={<TablePane />}
25 primaryOnly={!themeStore.showTable}
26 secondaryOnly={!themeStore.showGraph}
27 />
28 }
29 primaryOnly={!themeStore.showGraph && !themeStore.showTable} 21 primaryOnly={!themeStore.showGraph && !themeStore.showTable}
30 secondaryOnly={!themeStore.showCode} 22 secondaryOnly={!themeStore.showCode}
31 /> 23 />