Skip to content

Commit

Permalink
make top links react-router-dom links
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Jun 17, 2024
1 parent a058595 commit 4ab6553
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions frontend/src/components/nav/TopNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ const TopNavbar = () => {
<GearFill />
</Nav.Link>
</Boop>
<Nav.Link href="/logout">Log Out</Nav.Link>
<Nav.Link as={Link} to="/logout">
Log Out
</Nav.Link>
</>
) : (
<>
<Nav.Link href="/login">Login</Nav.Link>
<Nav.Link href="/register">Register</Nav.Link>
<Nav.Link as={Link} to="/login">
Login
</Nav.Link>
<Nav.Link as={Link} to="/register">
Register
</Nav.Link>
</>
)}
</div>
Expand Down

0 comments on commit 4ab6553

Please sign in to comment.