@@ -8,11 +8,13 @@ import styled, { ThemeProvider } from "styled-components";
88import { GlobalStyles } from "./components/GlobalStyles/globalStyles" ;
99import { useDarkMode } from "./components/UseDarkMode/useDarkMode" ;
1010import { StyledText , themeColours , darkThemeColours } from "./utils/theme" ;
11+ import "./font.css" ;
1112
1213import Devices from "./pages/Devices/Devices" ;
1314import Settings from "./pages/Settings/Settings" ;
1415import Groups from "./pages/Groups/Groups" ;
1516
17+ import NavBar from "./components/NavBar/NavBar" ;
1618import Button from "./components/Button/Button" ;
1719import DeviceSettings from "./components/DeviceSettings/DeviceSettings" ;
1820import { type Device , type Group } from "starlight/types" ;
@@ -22,13 +24,6 @@ const Wrapper = styled.div`
2224 padding: 2em;
2325` ;
2426
25- const NavBar = styled . div `
26- display: flex;
27- align-items: center;
28- justify-content: center;
29- margin-bottom: 1em;
30- ` ;
31-
3227const backend = import . meta. env . VITE_API_URL ?? "" ;
3328
3429function App ( ) {
@@ -52,17 +47,21 @@ function App() {
5247 < ThemeProvider theme = { themeMode } >
5348 < GlobalStyles />
5449 < Wrapper >
55- < NavBar >
56- < Link href = { "/devices" } >
57- < Button text = { "Devices" } />
58- </ Link >
59- < Link href = { "/groups" } >
60- < Button text = { "Groups" } />
61- </ Link >
62- < Link href = { "/settings" } >
63- < Button text = { "Settings" } />
64- </ Link >
65- </ NavBar >
50+ < NavBar
51+ items = {
52+ < >
53+ < Link href = { "/devices" } >
54+ < Button text = { "Devices" } />
55+ </ Link >
56+ < Link href = { "/groups" } >
57+ < Button text = { "Groups" } />
58+ </ Link >
59+ < Link href = { "/settings" } >
60+ < Button text = { "Settings" } />
61+ </ Link >
62+ </ >
63+ }
64+ > </ NavBar >
6665
6766 { /* routes */ }
6867 < Route path = { "/devices" } >
0 commit comments