From 7f68abec0b3565d2a75e60746470fcf73af5c097 Mon Sep 17 00:00:00 2001 From: Yash Mathur Date: Fri, 4 Oct 2024 17:05:48 +0530 Subject: [PATCH] UI Improvements --- open-giving/src/components/FilterAccordion.js | 2 +- open-giving/src/components/NonProfitCard.js | 4 +-- open-giving/src/components/NonProfitGrid.js | 35 +++++++++++-------- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/open-giving/src/components/FilterAccordion.js b/open-giving/src/components/FilterAccordion.js index 2186edb..1883aa2 100644 --- a/open-giving/src/components/FilterAccordion.js +++ b/open-giving/src/components/FilterAccordion.js @@ -17,7 +17,7 @@ const FilterAccordion = ({ onMethodToggle, paymentMethods, }) => ( - setIsExpanded(!isExpanded)}> + setIsExpanded(!isExpanded)}> } aria-controls="filter-content" diff --git a/open-giving/src/components/NonProfitCard.js b/open-giving/src/components/NonProfitCard.js index dc2b66b..056b4be 100644 --- a/open-giving/src/components/NonProfitCard.js +++ b/open-giving/src/components/NonProfitCard.js @@ -31,8 +31,8 @@ export default function NonProfitCard({ nonProfit, onLearnMore, showQRCode }) { return ( ( - {nonProfits.map((nonProfit) => ( - ( + - onOpenDialog(nonProfit)} - showQRCode={showQRCode} - useTestPaymentID={useTestPaymentID} - /> - + + onOpenDialog(nonProfit)} + showQRCode={showQRCode} + useTestPaymentID={useTestPaymentID} + /> + + ))} );