diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-02-16 01:09:27 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-02-24 00:53:06 +0100 |
commit | 39231032ef9abfc3a90af7bf0460037aa220ce11 (patch) | |
tree | 0159913431d04689c5a988eb4d69e001486d9bac /packages/renderer/src/components/App.tsx | |
parent | chore(deps): Bump dependencies (diff) | |
download | sophie-39231032ef9abfc3a90af7bf0460037aa220ce11.tar.gz sophie-39231032ef9abfc3a90af7bf0460037aa220ce11.tar.zst sophie-39231032ef9abfc3a90af7bf0460037aa220ce11.zip |
feat: Basic location bar
Still needs adding event handlers to actually navigate the browser.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/renderer/src/components/App.tsx')
-rw-r--r-- | packages/renderer/src/components/App.tsx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/packages/renderer/src/components/App.tsx b/packages/renderer/src/components/App.tsx index 1174bbb..cf97074 100644 --- a/packages/renderer/src/components/App.tsx +++ b/packages/renderer/src/components/App.tsx | |||
@@ -22,7 +22,8 @@ import Box from '@mui/material/Box'; | |||
22 | import React from 'react'; | 22 | import React from 'react'; |
23 | 23 | ||
24 | import BrowserViewPlaceholder from './BrowserViewPlaceholder'; | 24 | import BrowserViewPlaceholder from './BrowserViewPlaceholder'; |
25 | import Sidebar from './Sidebar'; | 25 | import LocationBar from './locationBar/LocationBar'; |
26 | import Sidebar from './sidebar/Sidebar'; | ||
26 | 27 | ||
27 | export default function App(): JSX.Element { | 28 | export default function App(): JSX.Element { |
28 | return ( | 29 | return ( |
@@ -36,7 +37,18 @@ export default function App(): JSX.Element { | |||
36 | }} | 37 | }} |
37 | > | 38 | > |
38 | <Sidebar /> | 39 | <Sidebar /> |
39 | <BrowserViewPlaceholder /> | 40 | <Box |
41 | sx={{ | ||
42 | flex: 1, | ||
43 | display: 'flex', | ||
44 | flexDirection: 'column', | ||
45 | alignItems: 'stretch', | ||
46 | height: '100%', | ||
47 | }} | ||
48 | > | ||
49 | <LocationBar /> | ||
50 | <BrowserViewPlaceholder /> | ||
51 | </Box> | ||
40 | </Box> | 52 | </Box> |
41 | ); | 53 | ); |
42 | } | 54 | } |