From 4a74b48a7d09eff18409652301725535f58200c5 Mon Sep 17 00:00:00 2001 From: sirpy Date: Wed, 27 Nov 2024 16:31:09 +0200 Subject: [PATCH] add: finalize design --- .../app/src/components/ViewCollective.tsx | 48 +++++++++++++------ 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/packages/app/src/components/ViewCollective.tsx b/packages/app/src/components/ViewCollective.tsx index 19175b8..270dd5b 100644 --- a/packages/app/src/components/ViewCollective.tsx +++ b/packages/app/src/components/ViewCollective.tsx @@ -106,31 +106,51 @@ const HasDonatedCard = ({ /> = {donationsUsdValue || 0} USD - - Donation Streaming Rate - G$ {formatFlowRate(donorCollective.flowRate)} / Monthly - + {isDonating && ( + + Donation Streaming Rate + G$ {formatFlowRate(donorCollective.flowRate)} / Monthly + + )} {/* Stream Rate */} {/* Dates */} - - Date Initiated - {formatTime(donorCollective.timestamp)} - - - Estimated End Date - {endDate} - + {isDonating && ( + <> + + Date Initiated + {formatTime(donorCollective.timestamp)} + + + + Estimated End Date + {endDate} + + + )} {/* Buttons */} - - + + {isDonating ? ( + + ) : ( + { + navigate(`/donate/${donorCollective.collective}`); + }} + /> + )}