Skip to content

Commit

Permalink
Merge pull request #18 from the-collab-lab/hm-qg-nav-routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hudamabkhoot committed Aug 17, 2024
2 parents df7dd96 + 6ba85f4 commit 9b57689
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/views/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Outlet } from 'react-router-dom';
import './Layout.css';
import { useAuth } from '../api';
import { SignInButton, SignOutButton } from '../api/useAuth';
import { NavLink } from 'react-router-dom';

/**
* TODO: The links defined in this file don't work!
Expand Down Expand Up @@ -34,15 +35,15 @@ export function Layout() {
</main>
<nav className="Nav">
<div className="Nav-container">
<a href="#" className="Nav-link">
<NavLink to="/" className="Nav-link">
Home
</a>
<a href="#" className="Nav-link">
</NavLink>
<NavLink to="/list" className="Nav-link">
List
</a>
<a href="#" className="Nav-link">
</NavLink>
<NavLink to="/manage-list" className="Nav-link">
Manage List
</a>
</NavLink>
</div>
</nav>
</div>
Expand Down

0 comments on commit 9b57689

Please sign in to comment.