aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/js/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'language-web/src/main/js/App.tsx')
-rw-r--r--language-web/src/main/js/App.tsx46
1 files changed, 23 insertions, 23 deletions
diff --git a/language-web/src/main/js/App.tsx b/language-web/src/main/js/App.tsx
index 5bd46c09..17d4f339 100644
--- a/language-web/src/main/js/App.tsx
+++ b/language-web/src/main/js/App.tsx
@@ -9,10 +9,10 @@ import MenuIcon from '@material-ui/icons/Menu';
9import PlayArrowIcon from '@material-ui/icons/PlayArrow'; 9import PlayArrowIcon from '@material-ui/icons/PlayArrow';
10 10
11import { makeStyles } from './makeStyles'; 11import { makeStyles } from './makeStyles';
12import Editor from './editor/Editor'; 12import { Editor } from './editor/Editor';
13import EditorButtons from './editor/EditorButtons'; 13import { EditorButtons } from './editor/EditorButtons';
14 14
15const useStyles = makeStyles()(theme => ({ 15const useStyles = makeStyles()((theme) => ({
16 container: { 16 container: {
17 maxHeight: '100vh', 17 maxHeight: '100vh',
18 }, 18 },
@@ -27,31 +27,31 @@ const useStyles = makeStyles()(theme => ({
27 }, 27 },
28})); 28}));
29 29
30export default () => { 30export const App = (): JSX.Element => {
31 const { classes, cx } = useStyles(); 31 const { classes, cx } = useStyles();
32 32
33 return ( 33 return (
34 <Box 34 <Box
35 display='flex' 35 display="flex"
36 flexDirection='column' 36 flexDirection="column"
37 className={cx(classes.container)} 37 className={cx(classes.container)}
38 > 38 >
39 <AppBar 39 <AppBar
40 position='static' 40 position="static"
41 color='inherit' 41 color="inherit"
42 > 42 >
43 <Toolbar> 43 <Toolbar>
44 <IconButton 44 <IconButton
45 edge='start' 45 edge="start"
46 className={cx(classes.menuButton)} 46 className={cx(classes.menuButton)}
47 color='inherit' 47 color="inherit"
48 aria-label='menu' 48 aria-label="menu"
49 > 49 >
50 <MenuIcon /> 50 <MenuIcon />
51 </IconButton> 51 </IconButton>
52 <Typography 52 <Typography
53 variant='h6' 53 variant="h6"
54 component='h1' 54 component="h1"
55 className={cx(classes.title)} 55 className={cx(classes.title)}
56 > 56 >
57 GraphSolver 57 GraphSolver
@@ -59,22 +59,22 @@ export default () => {
59 </Toolbar> 59 </Toolbar>
60 </AppBar> 60 </AppBar>
61 <Box 61 <Box
62 display='flex' 62 display="flex"
63 justifyContent='space-between' 63 justifyContent="space-between"
64 alignItems='center' 64 alignItems="center"
65 p={1} 65 p={1}
66 > 66 >
67 <Box 67 <Box
68 display='flex' 68 display="flex"
69 alignItems='center' 69 alignItems="center"
70 > 70 >
71 <EditorButtons/> 71 <EditorButtons />
72 </Box> 72 </Box>
73 <Box> 73 <Box>
74 <Button 74 <Button
75 variant='outlined' 75 variant="outlined"
76 color='primary' 76 color="primary"
77 startIcon={<PlayArrowIcon/>} 77 startIcon={<PlayArrowIcon />}
78 > 78 >
79 Generate 79 Generate
80 </Button> 80 </Button>
@@ -85,7 +85,7 @@ export default () => {
85 flexShrink={1} 85 flexShrink={1}
86 className={cx(classes.editorBox)} 86 className={cx(classes.editorBox)}
87 > 87 >
88 <Editor/> 88 <Editor />
89 </Box> 89 </Box>
90 </Box> 90 </Box>
91 ); 91 );