Skip to content

Commit

Permalink
Merge pull request #26 from the-collab-lab/gb-db-nav-bar-links
Browse files Browse the repository at this point in the history
NavLink set up to link to different views
  • Loading branch information
dilekbaykara authored Aug 18, 2024
2 parents f1588a2 + 53d1157 commit 20c9699
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/views/Layout.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* eslint-disable jsx-a11y/anchor-is-valid */
import { Outlet } from 'react-router-dom';
import { useAuth, SignInButton, SignOutButton } from '../api/useAuth';
import { NavLink } from 'react-router-dom';
// import { Home, List, ManageList } from '../views';

import './Layout.css';

Expand All @@ -27,15 +29,15 @@ export function Layout() {
</main>
<nav className="Nav">
<div className="Nav-container">
<a href="#" className="Nav-link">
<NavLink to="/" end 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 20c9699

Please sign in to comment.