From d0b074c8ac65e1406b0c09d9f828af36090fe98b Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 14 Mar 2023 18:12:44 +0000 Subject: [PATCH] feat: patron character card --- src/components/common/CharacterCard.tsx | 2 +- src/components/common/PatronModal.tsx | 29 ++++++++++++++++--------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/components/common/CharacterCard.tsx b/src/components/common/CharacterCard.tsx index b5fd3981..3122e70a 100644 --- a/src/components/common/CharacterCard.tsx +++ b/src/components/common/CharacterCard.tsx @@ -71,7 +71,7 @@ export const CharacterCard: React.FC<{ {site?.name} - @{site.username} + @{site?.username} {site?.description && ( (null) useEffect(() => { - if (!tipCharacter.isSuccess) { + if (tipCharacter.isSuccess) { if (submitRef.current?.getBoundingClientRect()) { confetti({ particleCount: 150, @@ -109,13 +108,23 @@ export const PatronModal: React.FC<{ size="lg" >
- +
+ + + + + + {site?.name} + + @{site?.username} + + {site?.description && ( + + )} +
{t("Current patrons")}
{t("You are here to be the first patron.")}