From 81d4b66830729545b32f8277d267e9c060be569d Mon Sep 17 00:00:00 2001 From: shivamg9 Date: Thu, 21 Mar 2024 10:30:25 +0530 Subject: [PATCH] Modified button links in programs --- src/app/[locale]/programs/page.tsx | 20 +------------------ src/components/Card.tsx | 30 +++++++++++++++++----------- src/components/Pagination.tsx | 1 - src/components/navigation/Footer.tsx | 6 ++++-- 4 files changed, 23 insertions(+), 34 deletions(-) diff --git a/src/app/[locale]/programs/page.tsx b/src/app/[locale]/programs/page.tsx index ac792b4..0b11d89 100644 --- a/src/app/[locale]/programs/page.tsx +++ b/src/app/[locale]/programs/page.tsx @@ -83,7 +83,7 @@ export default function ProgrmPage({ router.push(`apply?programid=${program.id}`); }; const handleViewClick = (program: Program) => { - router.push(`submission?programId=${program.id}`); + router.push(`view?programId=${program.id}`); }; const handleReapplyClick = (program: Program) => { router.push(`apply?programid=${program.id}`); @@ -105,24 +105,20 @@ export default function ProgrmPage({ {program.is_portal_form_mapped && (program.is_multiple_form_submission ? ( showReapplyButton ? ( - - ) : null ) : ( - - ))} @@ -134,33 +130,27 @@ export default function ProgrmPage({ {program.is_portal_form_mapped && (program.is_multiple_form_submission ? ( showReapplyButton ? ( - - ) : ( - - ) ) : ( - - ))} @@ -172,24 +162,20 @@ export default function ProgrmPage({ {program.is_portal_form_mapped && (program.is_multiple_form_submission ? ( showReapplyButton ? ( - - ) : null ) : ( - - ))} @@ -198,14 +184,12 @@ export default function ProgrmPage({ return ( <> - - ); @@ -217,14 +201,12 @@ export default function ProgrmPage({ <> {program.is_portal_form_mapped && ( - - )} diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 9bb06e6..0cc5375 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -71,16 +71,18 @@ export function CardItem({ return (
-
- {title}
+
+ {title} +

@@ -100,7 +102,9 @@ export function CardItem({ {heading1} -

{description1}

+

+ {description1} +

@@ -123,7 +127,9 @@ export function CardItem({ {heading2} -

{description2}

+

+ {description2} +

diff --git a/src/components/Pagination.tsx b/src/components/Pagination.tsx index da3ae2a..46192e5 100644 --- a/src/components/Pagination.tsx +++ b/src/components/Pagination.tsx @@ -71,4 +71,3 @@ export default function Pagination({ ); } - diff --git a/src/components/navigation/Footer.tsx b/src/components/navigation/Footer.tsx index b97e6ea..b0b4353 100644 --- a/src/components/navigation/Footer.tsx +++ b/src/components/navigation/Footer.tsx @@ -55,7 +55,8 @@ export default function Footer() { color: "#484848", opacity: "1", whiteSpace: "nowrap", - }} > + }} + > {t("Contact Us")} @@ -74,7 +75,8 @@ export default function Footer() { color: "#484848", opacity: "1", whiteSpace: "nowrap", - }} > + }} + > {t("Others")}