Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion frontend/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Navbar = () => {
const { pathname } = useLocation();
const location = useLocation();
const navigate = useNavigate();

// Use auth context
const { currentUser, logout, isAuthenticated } = useAuth();

Expand Down Expand Up @@ -578,6 +578,22 @@ const Navbar = () => {
)}
</div>



{/* Wishlist icon (only for logged-in users) */}
{isAuthenticated && (
<Link
to="/wishlist"
className={`relative p-2 rounded-full transition ${location.pathname === "/wishlist"
? "text-primary-600 bg-primary-50"
: "text-neutral-600 hover:text-primary-600"
}`}
aria-label="Wishlist"
>
<i className="fas fa-heart text-lg"></i>
</Link>
)}

{/* User profile menu */}

<div className="relative">
Expand Down