From 3bb4111445b4a941b4ec99c7ab6e974921b9a059 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 29 Apr 2022 23:55:32 -0400 Subject: [PATCH] Make charity cards extend same length in row. Tweak image padding --- web/components/charity/charity-card.tsx | 6 +++--- web/pages/charity/index.tsx | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/web/components/charity/charity-card.tsx b/web/components/charity/charity-card.tsx index e50a9fe7..d86afde5 100644 --- a/web/components/charity/charity-card.tsx +++ b/web/components/charity/charity-card.tsx @@ -12,8 +12,8 @@ export function CharityCard(props: { charity: Charity }) { return ( -
-
+
+
{photo ? ( ) : ( @@ -23,7 +23,7 @@ export function CharityCard(props: { charity: Charity }) {

{name}

{preview}
- + ${Math.floor((raised ?? 0) / 100)} raised diff --git a/web/pages/charity/index.tsx b/web/pages/charity/index.tsx index c2b5a270..f481eaa3 100644 --- a/web/pages/charity/index.tsx +++ b/web/pages/charity/index.tsx @@ -6,7 +6,6 @@ import { Col } from '../../components/layout/col' import { Page } from '../../components/page' import { Title } from '../../components/title' -// TODO: Fetch amount raised. const charities = charityList.map((charity) => ({ ...charity, raised: 4001, @@ -40,9 +39,7 @@ export default function Charity() {
{filterCharities.map((charity) => ( -
- -
+ ))}
{filterCharities.length === 0 && (