From c586e02d5ed699834a6cfd43499de16cdbcd9a7f Mon Sep 17 00:00:00 2001 From: cyril <97067553+cyriljoby@users.noreply.github.com> Date: Tue, 17 Dec 2024 01:54:46 -0800 Subject: [PATCH] Links to other apps (#502) * added links to other applications at bottom of page * make not dependent on array indexing * replace standard a tag with next Link --------- Co-authored-by: Cyril Joby --- .../ApplyConfirmation/ConfirmationDetails.tsx | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/apps/site/src/lib/components/forms/shared/ApplyConfirmation/ConfirmationDetails.tsx b/apps/site/src/lib/components/forms/shared/ApplyConfirmation/ConfirmationDetails.tsx index a61520bf..ccb545ca 100644 --- a/apps/site/src/lib/components/forms/shared/ApplyConfirmation/ConfirmationDetails.tsx +++ b/apps/site/src/lib/components/forms/shared/ApplyConfirmation/ConfirmationDetails.tsx @@ -1,4 +1,5 @@ import Button from "@/lib/components/Button/Button"; +import Link from "next/link"; interface ConfirmationDetailsProps { isLoggedIn: boolean; @@ -15,6 +16,9 @@ export default async function ConfirmationDetails({ roleText, role, }: ConfirmationDetailsProps) { + const otherRoles = ["Hacker", "Mentor", "Volunteer"].filter( + (r) => r !== role, + ); return (

Before Applying

@@ -61,6 +65,22 @@ export default async function ConfirmationDetails({ } isLightVersion /> + +

+ Interested in being a{" "} + {otherRoles.map((role, index) => ( + + + {role} + + {index < otherRoles.length - 1 ? " or " : " "} + + ))} + instead? +

); }