From 3738a7f96e668b877e75ff14c870ebbf49e3ed06 Mon Sep 17 00:00:00 2001 From: Daehyun Paik Date: Tue, 22 Oct 2024 15:34:50 +0200 Subject: [PATCH] chore: reflect a few UI feddbacks --- components/report-details/funding-progress.tsx | 8 ++++---- components/report-details/report-sidebar.tsx | 10 +++------- components/reports/report-card.tsx | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/components/report-details/funding-progress.tsx b/components/report-details/funding-progress.tsx index da7838d3..54ab3eb8 100644 --- a/components/report-details/funding-progress.tsx +++ b/components/report-details/funding-progress.tsx @@ -23,16 +23,16 @@ const FundingProgress: React.FC = ({
- ${totalAmount} + ${dollarAmountNeeded} {" "} - GOAL + NEEDED
{!isFullyFunded && (
- ${dollarAmountNeeded} + ${totalAmount} {" "} - NEEDED + GOAL
)}
diff --git a/components/report-details/report-sidebar.tsx b/components/report-details/report-sidebar.tsx index 7bf3d5db..2dbd8bf4 100644 --- a/components/report-details/report-sidebar.tsx +++ b/components/report-details/report-sidebar.tsx @@ -12,15 +12,11 @@ const ImpactDetails = ({ report }: { report: Report }) => { }, { title: "Impact Timeframe", - value: report.impactTimeframe - ? report.impactTimeframe - : "N/A", + value: report.impactTimeframe ? report.impactTimeframe : "N/A", }, { title: "Work Timeframe", - value: report.workTimeframe - ? report.workTimeframe - : "N/A", + value: report.workTimeframe ? report.workTimeframe : "N/A", }, { title: "Contributors", @@ -94,7 +90,7 @@ const EvaluationDetails = ({ report }: { report: Partial }) => { value: report.verifiedBy || "Not Verified", }, { - title: "Byline", + title: "Evaluated By", value: report.byline || "Anonymous", }, ]; diff --git a/components/reports/report-card.tsx b/components/reports/report-card.tsx index dbc451b0..2681bf49 100644 --- a/components/reports/report-card.tsx +++ b/components/reports/report-card.tsx @@ -86,7 +86,7 @@ const ReportCard: React.FC = ({

{fundedSoFar === totalCost ? "Funded!" - : `${totalCost - fundedSoFar} needed`} + : `$${totalCost - fundedSoFar} needed`}