mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-08 01:06:31 +00:00
feat: enhance payment and topup interfaces with status and expiration details ✨
This commit is contained in:
@ -103,19 +103,6 @@ export async function TopupsTable({
|
||||
View Details
|
||||
</Button>
|
||||
</Link>
|
||||
{!topup.is_expired &&
|
||||
topup.status !== "CANCELLED" && (
|
||||
<Badge
|
||||
className={cn(
|
||||
topup?.paid
|
||||
? "text-green-500 bg-green-500/20"
|
||||
: "text-yellow-500 bg-yellow-500/20",
|
||||
)}
|
||||
variant={topup.paid ? "outline" : "secondary"}
|
||||
>
|
||||
{topup.paid ? "Paid" : "Unpaid"}
|
||||
</Badge>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</TableCell>
|
||||
@ -203,18 +190,6 @@ function MobileTopupDetails({ topup }: { topup: Topup }) {
|
||||
View Details
|
||||
</Button>
|
||||
</Link>
|
||||
{!topup.is_expired && topup.status !== "CANCELLED" && (
|
||||
<Badge
|
||||
className={cn(
|
||||
topup?.paid
|
||||
? "text-green-500 bg-green-500/20"
|
||||
: "text-yellow-500 bg-yellow-500/20",
|
||||
)}
|
||||
variant={topup.paid ? "outline" : "secondary"}
|
||||
>
|
||||
{topup.paid ? "Paid" : "Unpaid"}
|
||||
</Badge>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="bg-white dark:bg-black p-2 rounded mt-2 w-full border flex justify-between items-center">
|
||||
|
Reference in New Issue
Block a user