diff options
Diffstat (limited to 'subprojects/frontend/src/editor/GenerateButton.tsx')
-rw-r--r-- | subprojects/frontend/src/editor/GenerateButton.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/subprojects/frontend/src/editor/GenerateButton.tsx b/subprojects/frontend/src/editor/GenerateButton.tsx index 3834cec4..fc337da9 100644 --- a/subprojects/frontend/src/editor/GenerateButton.tsx +++ b/subprojects/frontend/src/editor/GenerateButton.tsx | |||
@@ -1,13 +1,13 @@ | |||
1 | import { observer } from 'mobx-react-lite'; | ||
2 | import Button from '@mui/material/Button'; | ||
3 | import PlayArrowIcon from '@mui/icons-material/PlayArrow'; | 1 | import PlayArrowIcon from '@mui/icons-material/PlayArrow'; |
2 | import Button from '@mui/material/Button'; | ||
3 | import { observer } from 'mobx-react-lite'; | ||
4 | import React from 'react'; | 4 | import React from 'react'; |
5 | 5 | ||
6 | import { useRootStore } from '../RootStore'; | 6 | import { useRootStore } from '../RootStore'; |
7 | 7 | ||
8 | const GENERATE_LABEL = 'Generate'; | 8 | const GENERATE_LABEL = 'Generate'; |
9 | 9 | ||
10 | export const GenerateButton = observer(() => { | 10 | function GenerateButton(): JSX.Element { |
11 | const { editorStore } = useRootStore(); | 11 | const { editorStore } = useRootStore(); |
12 | const { errorCount, warningCount } = editorStore; | 12 | const { errorCount, warningCount } = editorStore; |
13 | 13 | ||
@@ -41,4 +41,6 @@ export const GenerateButton = observer(() => { | |||
41 | {summary === '' ? GENERATE_LABEL : `${GENERATE_LABEL} (${summary})`} | 41 | {summary === '' ? GENERATE_LABEL : `${GENERATE_LABEL} (${summary})`} |
42 | </Button> | 42 | </Button> |
43 | ); | 43 | ); |
44 | }); | 44 | } |
45 | |||
46 | export default observer(GenerateButton); | ||