Skip to content

Commit

Permalink
chore: reflect a few UI feddbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
baumstern committed Oct 22, 2024
1 parent b02b4b2 commit 3738a7f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
8 changes: 4 additions & 4 deletions components/report-details/funding-progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ const FundingProgress: React.FC<FundingProgressProps> = ({
<div className="flex justify-between">
<div className="text-sm text-vd-blue-600 flex-1">
<span className="text-vd-blue-900 font-semibold text-lg">
${totalAmount}
${dollarAmountNeeded}
</span>{" "}
GOAL
NEEDED
</div>
{!isFullyFunded && (
<div className="text-sm text-vd-blue-600">
<span className="text-vd-blue-900 font-semibold text-lg">
${dollarAmountNeeded}
${totalAmount}
</span>{" "}
NEEDED
GOAL
</div>
)}
</div>
Expand Down
10 changes: 3 additions & 7 deletions components/report-details/report-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -94,7 +90,7 @@ const EvaluationDetails = ({ report }: { report: Partial<Report> }) => {
value: report.verifiedBy || "Not Verified",
},
{
title: "Byline",
title: "Evaluated By",
value: report.byline || "Anonymous",
},
];
Expand Down
2 changes: 1 addition & 1 deletion components/reports/report-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const ReportCard: React.FC<ReportCardProps> = ({
<p className="text-xs">
{fundedSoFar === totalCost
? "Funded!"
: `${totalCost - fundedSoFar} needed`}
: `$${totalCost - fundedSoFar} needed`}
</p>
</CardFooter>
</Card>
Expand Down

0 comments on commit 3738a7f

Please sign in to comment.