Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #38 from mfdavies/ui-fixes
Browse files Browse the repository at this point in the history
add nav logo
  • Loading branch information
owencooke authored Jan 7, 2024
2 parents a107917 + dedd91d commit e0b42f3
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions frontend/src/views/practitioner/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
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);
});

auth
.signOut()
.then(function () {
navigate("/");
console.log("Worked");
})
.catch(function (error) {
console.error("Error signing out:", error);
});
}
};

return (
<div className="navbar bg-gray-50 ml-1">
<div className="flex-1">
<a className="btn btn-ghost text-xl">MobilityMate</a>
<div className="flex-1 h-8">
<img className="w-16" src={logo} alt="MobilityMate Logo" />
<a className="btn btn-ghost text-xl p-0">MobilityMate</a>
</div>
<div className="flex-none">
<div className="dropdown dropdown-end">
Expand Down

0 comments on commit e0b42f3

Please sign in to comment.