From 292a015b59f465c410b7b32ef1b08dce9ef45942 Mon Sep 17 00:00:00 2001 From: praliptarajoo Date: Thu, 18 Jan 2024 19:19:16 +0530 Subject: [PATCH] not show line and link for upcoming projects --- src/app/projects/components/ProjectCard.tsx | 5 ++++- src/app/projects/components/ProjectGrid.tsx | 13 +++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/app/projects/components/ProjectCard.tsx b/src/app/projects/components/ProjectCard.tsx index 671f451f..92ba7ae1 100644 --- a/src/app/projects/components/ProjectCard.tsx +++ b/src/app/projects/components/ProjectCard.tsx @@ -6,6 +6,7 @@ import Image from "next/image"; interface Props { title: string; + parentTitle: string; shortDescription: string; githubUrl?: string; documentationUrl?: string; @@ -16,6 +17,7 @@ export default function ProjectCard({ shortDescription, githubUrl, documentationUrl, + parentTitle, }: Props) { return (
@@ -25,7 +27,8 @@ export default function ProjectCard({

{shortDescription}

- {(githubUrl || documentationUrl) && + {parentTitle !== "Upcoming Projects" && + (githubUrl || documentationUrl) && (githubUrl !== "NA" || documentationUrl !== "NA") && (
{githubUrl && githubUrl !== "NA" ? ( diff --git a/src/app/projects/components/ProjectGrid.tsx b/src/app/projects/components/ProjectGrid.tsx index 961128b5..3657005b 100644 --- a/src/app/projects/components/ProjectGrid.tsx +++ b/src/app/projects/components/ProjectGrid.tsx @@ -26,11 +26,20 @@ export default function ProjectGrid({ title, projectData }: Props) {
{projectData.map( - ({ title, shortDescription, githubUrl, documentationUrl }, index) => { + ( + { + title: projectTitle, + shortDescription, + githubUrl, + documentationUrl, + }, + index + ) => { return (