From 378fb4074c9fcab12e328a22d00a071dea39cba5 Mon Sep 17 00:00:00 2001 From: i701 Date: Sat, 5 Jul 2025 19:44:36 +0500 Subject: [PATCH] =?UTF-8?q?refactor:=20update=20topup=20status=20handling?= =?UTF-8?q?=20in=20DynamicFilter=20and=20TopupsTable=20components=20?= =?UTF-8?q?=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(dashboard)/top-ups/page.tsx | 16 ++++++++++------ components/topups-table.tsx | 17 ++++++++++------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/app/(dashboard)/top-ups/page.tsx b/app/(dashboard)/top-ups/page.tsx index 8b27ed9..ad41ebc 100644 --- a/app/(dashboard)/top-ups/page.tsx +++ b/app/(dashboard)/top-ups/page.tsx @@ -26,8 +26,8 @@ export default async function Topups({ - {topup.is_expired ? Expired : {topup.status}} + {topup.paid ? ( + {topup.status} + ) : topup.is_expired ? ( + Expired + ) : ( + {topup.status} + )} @@ -150,10 +156,7 @@ export async function TopupsTable({ - +
{data.map((topup) => ( @@ -161,8 +164,8 @@ export async function TopupsTable({ ))}
)}