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"),