From f28bfc4cca81e2f998f815835a350c374d9ccd11 Mon Sep 17 00:00:00 2001 From: Kalidou Diagne Date: Tue, 22 Apr 2025 08:21:46 +0300 Subject: [PATCH] feat: update zkid page (#341) --- .../projects/sections/ProjectContent.tsx | 16 ++++++++++------ data/projects/zk-id.ts | 18 ++++++++++++++---- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/app/[lang]/projects/sections/ProjectContent.tsx b/app/[lang]/projects/sections/ProjectContent.tsx index 5b652ee..91be42d 100644 --- a/app/[lang]/projects/sections/ProjectContent.tsx +++ b/app/[lang]/projects/sections/ProjectContent.tsx @@ -5,7 +5,7 @@ import { useRouter } from "next/navigation" import { siteConfig } from "@/config/site" import { getProjectById } from "@/lib/projectsUtils" -import { ProjectStatus } from "@/lib/types" +import { ProjectCategory, ProjectStatus } from "@/lib/types" import { cn } from "@/lib/utils" import { AppContent } from "@/components/ui/app-content" import { Markdown, createMarkdownElement } from "@/components/ui/markdown" @@ -44,6 +44,8 @@ export const ProjectContent = ({ const projectStatusMessage = ProjectStatusMessageMap?.[project?.projectStatus as ProjectStatus] + const isResearchProject = project?.category === ProjectCategory.RESEARCH + if (!project?.id) { router.push("/404") } @@ -235,11 +237,13 @@ export const ProjectContent = ({ - + {!isResearchProject && ( + + )}