From 7608c76ebcea790e18ea9b375eeb0337ec8f00d4 Mon Sep 17 00:00:00 2001 From: Angie Che Date: Mon, 26 Jan 2026 13:46:12 -0500 Subject: [PATCH 1/2] popup --- apps/main/src/app/lib/Components/NavBar.tsx | 10 +++++++--- packages/ui/src/NavBar/NavBarBase.tsx | 16 +++++++++++++++- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/apps/main/src/app/lib/Components/NavBar.tsx b/apps/main/src/app/lib/Components/NavBar.tsx index 94fa6208..3420c20f 100644 --- a/apps/main/src/app/lib/Components/NavBar.tsx +++ b/apps/main/src/app/lib/Components/NavBar.tsx @@ -4,6 +4,10 @@ import React from "react"; import NavBarBase from "@repo/ui/NavBarBase"; const NavBar = () => { + const handleApplyClick = () => { + alert("Applications for HackBeanpot 2026 are closed! Please follow us on Instagram @HackBeanpot for more updates."); + }; + return ( { { pageName: "Sponsor Us", link: "/sponsor-us" }, { pageName: "Apply", - link: "https://apply.hackbeanpot.com/", - useExternalLink: true, + link: "#", buttonColor: "firecrackerRedLight", + onClick: handleApplyClick, }, ]} /> ); }; -export default NavBar; +export default NavBar; \ No newline at end of file diff --git a/packages/ui/src/NavBar/NavBarBase.tsx b/packages/ui/src/NavBar/NavBarBase.tsx index a586289c..809d5dfd 100644 --- a/packages/ui/src/NavBar/NavBarBase.tsx +++ b/packages/ui/src/NavBar/NavBarBase.tsx @@ -14,6 +14,7 @@ export type LinkProps = { link: string; buttonColor?: string; useExternalLink?: boolean; + onClick?: () => void; // ADDED: onClick support }; export type NavBarProps = { @@ -29,6 +30,19 @@ const LinkedButton = ({ useExternalLink: boolean; linkInfo: LinkProps; }) => { + if (linkInfo.onClick) { + return ( + ); }; -export default FilterButton; \ No newline at end of file +export default FilterButton; diff --git a/apps/main/src/app/lib/Components/NavBar.tsx b/apps/main/src/app/lib/Components/NavBar.tsx index 3420c20f..b2be37c4 100644 --- a/apps/main/src/app/lib/Components/NavBar.tsx +++ b/apps/main/src/app/lib/Components/NavBar.tsx @@ -5,7 +5,9 @@ import NavBarBase from "@repo/ui/NavBarBase"; const NavBar = () => { const handleApplyClick = () => { - alert("Applications for HackBeanpot 2026 are closed! Please follow us on Instagram @HackBeanpot for more updates."); + alert( + "Applications for HackBeanpot 2026 are closed! Please follow us on Instagram @HackBeanpot for more updates.", + ); }; return ( @@ -29,4 +31,4 @@ const NavBar = () => { ); }; -export default NavBar; \ No newline at end of file +export default NavBar; diff --git a/apps/main/src/app/sponsors/page.tsx b/apps/main/src/app/sponsors/page.tsx index e25e5640..1475cf6a 100644 --- a/apps/main/src/app/sponsors/page.tsx +++ b/apps/main/src/app/sponsors/page.tsx @@ -13,7 +13,7 @@ import KlaviyoLogo from "@repo/ui/Logos/KlaviyoLogo.svg"; import MavenAGILogo from "@repo/ui/Logos/MavenAGILogo.svg"; import RGLogo from "@repo/ui/Logos/RGLogo.svg"; import WhoopLogo from "@repo/ui/Logos/WhoopLogo.svg"; -import PureButton from "@repo/ui/Logos/PureButton.svg" +import PureButton from "@repo/ui/Logos/PureButton.svg"; function makeSponsorRow( ticketSizes: number[], diff --git a/packages/ui/src/NavBar/NavBarBase.tsx b/packages/ui/src/NavBar/NavBarBase.tsx index 809d5dfd..5cb60a36 100644 --- a/packages/ui/src/NavBar/NavBarBase.tsx +++ b/packages/ui/src/NavBar/NavBarBase.tsx @@ -14,7 +14,7 @@ export type LinkProps = { link: string; buttonColor?: string; useExternalLink?: boolean; - onClick?: () => void; // ADDED: onClick support + onClick?: () => void; }; export type NavBarProps = { @@ -156,4 +156,4 @@ const NavBarBase: React.FC = ({ ); }; -export default NavBarBase; \ No newline at end of file +export default NavBarBase;