From 30ab3fbb5abcac570e64d0c25924607ee70552d4 Mon Sep 17 00:00:00 2001 From: jordan Date: Tue, 4 Jun 2024 16:22:09 -0700 Subject: [PATCH] post and display extra links --- .../dashboard/ship/PortfolioReport.tsx | 147 +++++++++++------- .../portfolioReportSchema.ts | 6 + src/constants/addresses.ts | 2 +- src/pages/Vote.tsx | 4 - 4 files changed, 95 insertions(+), 64 deletions(-) diff --git a/src/components/dashboard/ship/PortfolioReport.tsx b/src/components/dashboard/ship/PortfolioReport.tsx index 3546508b..e77fc917 100644 --- a/src/components/dashboard/ship/PortfolioReport.tsx +++ b/src/components/dashboard/ship/PortfolioReport.tsx @@ -7,6 +7,7 @@ import { Spoiler, Stack, Text, + TextInput, Textarea, useMantineTheme, } from '@mantine/core'; @@ -45,11 +46,15 @@ type FormValues = z.infer; const defaultValues: FormValues = { roundReview: '', grantReviews: {}, + grantDemos: {}, + grantExtras: {}, }; type ReportData = { roundReview: string; grantReviews: Record; + grantDemos: Record; + grantExtras: Record; }; export const PortfolioReport = ({ @@ -236,7 +241,9 @@ const PortfolioItem = ({ const status = completedMilestones === grant.milestones?.length ? 'Completed' : 'Active'; + const demoLink = reportData?.grantDemos?.[grant.id]; + const extraLink = reportData?.grantExtras?.[grant.id]; return ( @@ -259,16 +266,34 @@ const PortfolioItem = ({ {(reportStatus === ReportStatus.Submit || reportStatus === ReportStatus.Vote) && ( -