Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Jun 11, 2024
1 parent e45fd75 commit 5c44370
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions frontend/src/components/nav/TopNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,17 @@ const TopNavbar = () => {
<Navbar.Brand as={Link} to="/">
LinguaPhoto
</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 5c44370

Please sign in to comment.