aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/App.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-12 21:57:01 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-12 22:05:43 +0200
commit66216786a70e415775cf7e4b84cfd7d74b07aad0 (patch)
treea47dc186fb309627c069edacf9754b9ec483d0a4 /subprojects/frontend/src/App.tsx
parentrefactor(frontend): EditorParent line numbers (diff)
downloadrefinery-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.tsx22
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 @@
1import MenuIcon from '@mui/icons-material/Menu';
2import AppBar from '@mui/material/AppBar';
3import Box from '@mui/material/Box'; 1import Box from '@mui/material/Box';
4import IconButton from '@mui/material/IconButton';
5import Toolbar from '@mui/material/Toolbar';
6import Typography from '@mui/material/Typography';
7import React from 'react'; 2import React from 'react';
8 3
4import TopBar from './TopBar';
9import EditorArea from './editor/EditorArea'; 5import EditorArea from './editor/EditorArea';
10import EditorButtons from './editor/EditorButtons'; 6import EditorButtons from './editor/EditorButtons';
11import GenerateButton from './editor/GenerateButton'; 7import GenerateButton from './editor/GenerateButton';
@@ -13,21 +9,7 @@ import GenerateButton from './editor/GenerateButton';
13export default function App(): JSX.Element { 9export 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"