mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-08 01:06:31 +00:00
refactor: add topup expiry filter to the Topups component and simplify expired badge display in TopupsTable 🔨
This commit is contained in:
@ -125,7 +125,7 @@ export async function TopupsTable({
|
||||
{topup.paid ? (
|
||||
<Badge className="bg-green-100 dark:bg-green-700" variant="outline">{topup.status}</Badge>
|
||||
) : topup.is_expired ? (
|
||||
<Badge className="text-black dark:text-white bg-yellow-100 dark:bg-yellow-700">Expired</Badge>
|
||||
<Badge>Expired</Badge>
|
||||
) : (
|
||||
<Badge variant="outline">{topup.status}</Badge>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user