Skip to content

Commit a69a69d

Browse files
authored
Remove explosions from the navbar (#160)
Co-authored-by: James Lee
1 parent fd75736 commit a69a69d

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

client/src/components/main/Navbar.tsx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ import Image from "next/image";
55
import Link from "next/link";
66
import { useState } from "react";
77

8-
import { useExplosionContext } from "@/contexts/ExplosionContext";
9-
108
export default function Navbar() {
119
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
12-
const { triggerExplosionAt } = useExplosionContext();
1310

1411
const navItems = [
1512
{ href: "/", label: "Home" },
@@ -19,19 +16,11 @@ export default function Navbar() {
1916
{ href: "/artwork", label: "Art Showcase" },
2017
];
2118

22-
const handleNavClick = (e: React.MouseEvent) => {
23-
triggerExplosionAt(e.clientX, e.clientY);
24-
};
25-
2619
return (
2720
<>
2821
<header className="sticky top-0 z-50 flex h-24 w-full items-center border-b-2 border-border/20 border-b-primary bg-landingCard px-20 font-jersey10">
2922
<div className="flex flex-1 items-center">
30-
<Link
31-
href="/"
32-
className="flex items-center gap-3 text-2xl lg:mr-5"
33-
onClick={handleNavClick}
34-
>
23+
<Link href="/" className="flex items-center gap-3 text-2xl lg:mr-5">
3524
<Image
3625
src="/game_dev_club_logo.svg"
3726
alt="logo"
@@ -55,7 +44,6 @@ export default function Navbar() {
5544
<Link
5645
key={item.href}
5746
href={item.href}
58-
onClick={handleNavClick}
5947
className="whitespace-nowrap text-foreground/90 transition-colors duration-150 hover:text-primary"
6048
>
6149
{item.label}
@@ -79,8 +67,7 @@ export default function Navbar() {
7967
<Link
8068
key={item.href}
8169
href={item.href}
82-
onClick={(e) => {
83-
handleNavClick(e);
70+
onClick={() => {
8471
setIsDropdownOpen(false);
8572
}}
8673
className="block whitespace-nowrap px-4 py-3 text-lg transition-colors duration-150 hover:bg-accent"

0 commit comments

Comments
 (0)