From 4797ee8ddee610d2f6060dec91cf9ab66e1d97e3 Mon Sep 17 00:00:00 2001 From: i701 Date: Sun, 6 Jul 2025 22:38:39 +0500 Subject: [PATCH] =?UTF-8?q?feat:=20add=20expiry=20label=20to=20ExpiryCount?= =?UTF-8?q?Down=20component=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/billing/expiry-time-countdown.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/billing/expiry-time-countdown.tsx b/components/billing/expiry-time-countdown.tsx index a5a7188..59e0ab4 100644 --- a/components/billing/expiry-time-countdown.tsx +++ b/components/billing/expiry-time-countdown.tsx @@ -15,7 +15,7 @@ const HumanizeTimeLeft = (seconds: number) => { return `${minutes}m ${remainingSeconds}s` } -export default function ExpiryCountDown({ expiresAt }: { expiresAt: string }) { +export default function ExpiryCountDown({ expiresAt, expiryLabel }: { expiresAt: string, expiryLabel: string }) { const [timeLeft, setTimeLeft] = useState(calculateTimeLeft(expiresAt)) const [mounted, setMounted] = useState(false) const router = useRouter() @@ -47,7 +47,7 @@ export default function ExpiryCountDown({ expiresAt }: { expiresAt: string }) { {timeLeft ? ( Time left: {HumanizeTimeLeft(timeLeft)} ) : ( - Top up has expired. Please make another topup to add balance to your wallet. + {expiryLabel} has expired. )} {timeLeft > 0 && (