Skip to content

Commit

Permalink
fix: fixing the new UnauthenticatedNavBar to use the correct bootstra…
Browse files Browse the repository at this point in the history
…p comp since didn't get them in conflict resolve
  • Loading branch information
bbland1 committed Sep 29, 2024
1 parent 34ca5e1 commit 859926a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
24 changes: 16 additions & 8 deletions src/components/unauthenticated/UnauthenticatedNavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
import React from "react";
import { NavLink } from "react-router-dom";
import Navbar from "react-bootstrap/Navbar";
import Container from "react-bootstrap/Container";
import Nav from "react-bootstrap/Nav";

import "../NavBar.css";

export function UnauthenticatedNavBar() {
return (
<nav className="Nav">
<div className="Nav-container">
<NavLink to="/" className="Nav-link" aria-label="Home">
<Navbar expand="lg" fixed="bottom" className="Nav">
<Container className="d-flex justify-content-around Nav-container">
<Nav.Link as={NavLink} to="/" className="Nav-link" aria-label="Home">
Home
</NavLink>
<NavLink to="/about" className="Nav-link" aria-label="About">
</Nav.Link>
<Nav.Link
as={NavLink}
to="/about"
className="Nav-link"
aria-label="About"
>
About
</NavLink>
</div>
</nav>
</Nav.Link>
</Container>
</Navbar>
);
}
3 changes: 2 additions & 1 deletion src/views/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Layout({ user }: Props) {
const navigate = useNavigate();
return (
<>
<div className="Layout vh-100">
<div className="Layout vh-100">
<header className="Layout-header">
<h1>Smart shopping list</h1>
</header>
Expand All @@ -23,6 +23,7 @@ export function Layout({ user }: Props) {
<Button
onClick={() => navigate("/about")}
aria-label="Navigate to the about application page."
className="m-2"
>
about
</Button>
Expand Down

0 comments on commit 859926a

Please sign in to comment.