From 95750847862c87dfeb7a6ecbb650c872983d36ec Mon Sep 17 00:00:00 2001 From: James Lee Date: Sun, 26 Jul 2026 16:25:46 +0800 Subject: [PATCH] Remove explosions from the navbar --- client/src/components/main/Navbar.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/client/src/components/main/Navbar.tsx b/client/src/components/main/Navbar.tsx index a2eb3a7..2d14c1a 100644 --- a/client/src/components/main/Navbar.tsx +++ b/client/src/components/main/Navbar.tsx @@ -5,11 +5,8 @@ import Image from "next/image"; import Link from "next/link"; import { useState } from "react"; -import { useExplosionContext } from "@/contexts/ExplosionContext"; - export default function Navbar() { const [isDropdownOpen, setIsDropdownOpen] = useState(false); - const { triggerExplosionAt } = useExplosionContext(); const navItems = [ { href: "/", label: "Home" }, @@ -19,19 +16,11 @@ export default function Navbar() { { href: "/artwork", label: "Art Showcase" }, ]; - const handleNavClick = (e: React.MouseEvent) => { - triggerExplosionAt(e.clientX, e.clientY); - }; - return ( <>
- + logo {item.label} @@ -79,8 +67,7 @@ export default function Navbar() { { - handleNavClick(e); + onClick={() => { setIsDropdownOpen(false); }} className="block whitespace-nowrap px-4 py-3 text-lg transition-colors duration-150 hover:bg-accent"