diff --git a/app/(dashboard)/payments/[paymentId]/page.tsx b/app/(dashboard)/payments/[paymentId]/page.tsx index 9f53c3b..1e0b151 100644 --- a/app/(dashboard)/payments/[paymentId]/page.tsx +++ b/app/(dashboard)/payments/[paymentId]/page.tsx @@ -1,11 +1,12 @@ +import { redirect } from "next/navigation"; import { getPayment, getProfile } from "@/actions/payment"; import CancelPaymentButton from "@/components/billing/cancel-payment-button"; +import ExpiryCountDown from "@/components/billing/expiry-time-countdown"; import ClientErrorMessage from "@/components/client-error-message"; import DevicesToPay from "@/components/devices-to-pay"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; import { tryCatch } from "@/utils/tryCatch"; -import { redirect } from "next/navigation"; export default async function PaymentPage({ params, }: { @@ -40,13 +41,24 @@ export default async function PaymentPage({ {payment?.paid ? "Paid" : "Pending"} {!payment.paid && ( - + payment.is_expired ? ( + + ) : ( + + ) )} - + {!payment.paid && ( + + )}
{!topup.paid && ( - + )}