From 3e4b542450d23771013e0f2fa662b9effcee7de3 Mon Sep 17 00:00:00 2001 From: Owen Cooke Date: Sun, 7 Jan 2024 10:52:26 -0700 Subject: [PATCH] add navbar logo --- .../views/practitioner/components/Navbar.jsx | 158 +++++++++--------- 1 file changed, 80 insertions(+), 78 deletions(-) diff --git a/frontend/src/views/practitioner/components/Navbar.jsx b/frontend/src/views/practitioner/components/Navbar.jsx index 4925e11..030eb63 100644 --- a/frontend/src/views/practitioner/components/Navbar.jsx +++ b/frontend/src/views/practitioner/components/Navbar.jsx @@ -1,78 +1,80 @@ -import { auth } from "../../../../firebaseConfig"; -import { useNavigate } from "react-router-dom"; - - - -const Navbar = () => { - const navigate = useNavigate(); - - const handleLogout = async () => { - const confirmLogout = window.confirm("Are you sure you want to sign out?"); - if (confirmLogout) { - auth.signOut().then(function() { - navigate('/'); - console.log('Worked'); - }).catch(function(error) { - console.error('Error signing out:', error); - }); - - } - }; - - return ( -
-
- MobilityMate -
-
-
-
-
- 8 Items - Subtotal: $999 -
- -
-
-
-
-
-
-
- Tailwind CSS Navbar component -
-
- -
-
-
- ); -}; - -export default Navbar; +import { auth } from "../../../../firebaseConfig"; +import { useNavigate } from "react-router-dom"; +import logo from "../../../assets/mobilityMate-NoBg-lg.png"; + +const Navbar = () => { + const navigate = useNavigate(); + + const handleLogout = async () => { + const confirmLogout = window.confirm("Are you sure you want to sign out?"); + if (confirmLogout) { + auth + .signOut() + .then(function () { + navigate("/"); + console.log("Worked"); + }) + .catch(function (error) { + console.error("Error signing out:", error); + }); + } + }; + + return ( +
+
+ MobilityMate Logo + MobilityMate +
+
+
+
+
+ 8 Items + Subtotal: $999 +
+ +
+
+
+
+
+
+
+ Tailwind CSS Navbar component +
+
+ +
+
+
+ ); +}; + +export default Navbar;