diff options
author | 2022-08-12 21:57:01 +0200 | |
---|---|---|
committer | 2022-08-12 22:05:43 +0200 | |
commit | 66216786a70e415775cf7e4b84cfd7d74b07aad0 (patch) | |
tree | a47dc186fb309627c069edacf9754b9ec483d0a4 /subprojects/frontend/src/App.tsx | |
parent | refactor(frontend): EditorParent line numbers (diff) | |
download | refinery-66216786a70e415775cf7e4b84cfd7d74b07aad0.tar.gz refinery-66216786a70e415775cf7e4b84cfd7d74b07aad0.tar.zst refinery-66216786a70e415775cf7e4b84cfd7d74b07aad0.zip |
feat(frontend): light/dark mode switch
Diffstat (limited to 'subprojects/frontend/src/App.tsx')
-rw-r--r-- | subprojects/frontend/src/App.tsx | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/subprojects/frontend/src/App.tsx b/subprojects/frontend/src/App.tsx index d3ec63eb..12cf9311 100644 --- a/subprojects/frontend/src/App.tsx +++ b/subprojects/frontend/src/App.tsx | |||
@@ -1,11 +1,7 @@ | |||
1 | import MenuIcon from '@mui/icons-material/Menu'; | ||
2 | import AppBar from '@mui/material/AppBar'; | ||
3 | import Box from '@mui/material/Box'; | 1 | import Box from '@mui/material/Box'; |
4 | import IconButton from '@mui/material/IconButton'; | ||
5 | import Toolbar from '@mui/material/Toolbar'; | ||
6 | import Typography from '@mui/material/Typography'; | ||
7 | import React from 'react'; | 2 | import React from 'react'; |
8 | 3 | ||
4 | import TopBar from './TopBar'; | ||
9 | import EditorArea from './editor/EditorArea'; | 5 | import EditorArea from './editor/EditorArea'; |
10 | import EditorButtons from './editor/EditorButtons'; | 6 | import EditorButtons from './editor/EditorButtons'; |
11 | import GenerateButton from './editor/GenerateButton'; | 7 | import GenerateButton from './editor/GenerateButton'; |
@@ -13,21 +9,7 @@ import GenerateButton from './editor/GenerateButton'; | |||
13 | export default function App(): JSX.Element { | 9 | export default function App(): JSX.Element { |
14 | return ( | 10 | return ( |
15 | <Box display="flex" flexDirection="column" sx={{ height: '100vh' }}> | 11 | <Box display="flex" flexDirection="column" sx={{ height: '100vh' }}> |
16 | <AppBar position="static" color="inherit"> | 12 | <TopBar /> |
17 | <Toolbar> | ||
18 | <IconButton | ||
19 | edge="start" | ||
20 | sx={{ mr: 2 }} | ||
21 | color="inherit" | ||
22 | aria-label="menu" | ||
23 | > | ||
24 | <MenuIcon /> | ||
25 | </IconButton> | ||
26 | <Typography variant="h6" component="h1" flexGrow={1}> | ||
27 | Refinery | ||
28 | </Typography> | ||
29 | </Toolbar> | ||
30 | </AppBar> | ||
31 | <Box | 13 | <Box |
32 | display="flex" | 14 | display="flex" |
33 | justifyContent="space-between" | 15 | justifyContent="space-between" |