Skip to content

Commit

Permalink
NavBar UI improvement (#95)
Browse files Browse the repository at this point in the history
* NavBar UI improvement

* format
  • Loading branch information
chennisden authored Jun 10, 2024
1 parent bc5d5ed commit 88e3731
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions frontend/src/components/nav/TopNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,16 @@ const TopNavbar = () => {
<Navbar.Brand as={Link} to="/">
robolist
</Navbar.Brand>
<Navbar.Toggle />
<Navbar.Collapse className="justify-content-end">
<Nav>
<Nav.Link
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
>
{theme === "dark" ? <MoonFill /> : <SunFill />}
</Nav.Link>
<Nav.Link onClick={() => setShowSidebar(true)}>
<GearFill />
</Nav.Link>
</Nav>
</Navbar.Collapse>
<div className="d-flex gap-3">
<Nav.Link
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
>
{theme === "dark" ? <MoonFill /> : <SunFill />}
</Nav.Link>
<Nav.Link onClick={() => setShowSidebar(true)}>
<GearFill />
</Nav.Link>
</div>
</Container>
</Navbar>
<Sidebar show={showSidebar} onHide={() => setShowSidebar(false)} />
Expand Down

0 comments on commit 88e3731

Please sign in to comment.