From 7ebb5faa2f0d18db8e980e985e676cc719d970d2 Mon Sep 17 00:00:00 2001 From: CIFO Dev Date: Thu, 4 Dec 2025 15:47:52 +0700 Subject: [PATCH] fix ux --- src/pages/PaymentStatusPage.tsx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/pages/PaymentStatusPage.tsx b/src/pages/PaymentStatusPage.tsx index 66f4ce1..c36d467 100644 --- a/src/pages/PaymentStatusPage.tsx +++ b/src/pages/PaymentStatusPage.tsx @@ -1,9 +1,7 @@ import React from 'react' import { useParams, useSearchParams } from 'react-router-dom' -import { Alert } from '../components/alert/Alert' import { usePaymentNavigation } from '../features/payments/lib/navigation' import { usePaymentStatus } from '../features/payments/lib/usePaymentStatus' -import { Env } from '../lib/env' import type { PaymentStatusResponse } from '../features/payments/lib/midtrans' import { Logger } from '../lib/logger' import { CountdownRedirect } from '../components/CountdownRedirect' @@ -80,24 +78,6 @@ export function PaymentStatusPage() { } }, [isLoading, error, data]) - function statusBadgeClass(s: PaymentStatusResponse['status']) { - switch (s) { - case 'pending': - return 'inline-block rounded px-2 py-0.5 text-xs bg-yellow-100 text-yellow-800' - case 'settlement': - case 'capture': - return 'inline-block rounded px-2 py-0.5 text-xs bg-green-100 text-green-800' - case 'deny': - case 'cancel': - case 'expire': - case 'refund': - case 'chargeback': - return 'inline-block rounded px-2 py-0.5 text-xs bg-red-100 text-red-800' - default: - return 'inline-block rounded px-2 py-0.5 text-xs bg-gray-100 text-gray-800' - } - } - // User-friendly status messages function getStatusMessage(s: PaymentStatusResponse['status']) { switch (s) { -- 2.40.1