From 7934a91f404c6d4cd3bd8b542d7e9d9454225d1f Mon Sep 17 00:00:00 2001 From: 2004yash <134356616+2004yash@users.noreply.github.com> Date: Fri, 1 Nov 2024 11:13:50 +0530 Subject: [PATCH 1/2] made events page responsive to smaller devices --- app/(default)/myevents/page.tsx | 2 +- components/EventCard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/(default)/myevents/page.tsx b/app/(default)/myevents/page.tsx index 8ac5d84..ed5f9b2 100644 --- a/app/(default)/myevents/page.tsx +++ b/app/(default)/myevents/page.tsx @@ -183,7 +183,7 @@ const EventsPage = () => { {/* Past Events */}

Past Events

{pastEvents.length > 0 ? ( -
+
{pastEvents.map((event) => ( = ({ return (
onSelect(event)} > {/* Event Date Badge */} From 05dc41bb9277d50612e2b64f6c08774e0836bdf0 Mon Sep 17 00:00:00 2001 From: 2004yash <134356616+2004yash@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:34:15 +0530 Subject: [PATCH 2/2] added /community route to redirect to the whatsapp community --- app/(default)/community/page.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/(default)/community/page.tsx diff --git a/app/(default)/community/page.tsx b/app/(default)/community/page.tsx new file mode 100644 index 0000000..0439cae --- /dev/null +++ b/app/(default)/community/page.tsx @@ -0,0 +1,15 @@ +// page.tsx +"use client"; + +import { useEffect } from "react"; +import { useRouter } from "next/navigation"; + +export default function Page() { + const router = useRouter(); + + useEffect(() => { + window.location.href = "https://chat.whatsapp.com/IvpDqELtAfW5S2WElLgnlJ"; + }, []); + + return null; // No need to render anything as it will redirect immediately +}