From 27d78ba716e4092c0afa2fa066aec8d58534253c Mon Sep 17 00:00:00 2001 From: kawamataryo Date: Mon, 9 Dec 2024 13:16:23 +0900 Subject: [PATCH] chore: fix design --- src/lib/components/DonationCard.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/lib/components/DonationCard.tsx b/src/lib/components/DonationCard.tsx index 4cf492b..cdbd92a 100644 --- a/src/lib/components/DonationCard.tsx +++ b/src/lib/components/DonationCard.tsx @@ -15,12 +15,13 @@ const DonationCard = () => { }, false, ); + const handleClose = () => { - setUserClosed(true); setIsVisible(false); }; const handleDonationLinkClick = () => { - handleClose(); + setUserClosed(true); + setIsVisible(false); window.open("https://ko-fi.com/kawamataryo", "_blank"); }; @@ -31,7 +32,7 @@ const DonationCard = () => { if (userClosed) return; setIsVisible(true); }; - const timeoutId = setTimeout(showDonationCard, 2000); + const timeoutId = setTimeout(showDonationCard, 4000); return () => clearTimeout(timeoutId); }, [userClosed]); @@ -40,16 +41,17 @@ const DonationCard = () => { {isVisible && (
-
+ {/* biome-ignore lint/a11y/useKeyWithClickEvents: */} +

dangerouslySetInnerHTML={{ __html: getMessageWithLink("donate_message"),