fix build

This commit is contained in:
CIFO Dev 2025-12-04 17:06:02 +07:00
parent e9016d507d
commit 6aa9a0658b
2 changed files with 0 additions and 2 deletions

View File

@ -31,7 +31,6 @@ export interface PaymentSheetProps {
} }
export function PaymentSheet({ merchantName = 'Simaya', orderId, amount, expireAt, customerName, children, showStatusCTA = true }: PaymentSheetProps) { export function PaymentSheet({ merchantName = 'Simaya', orderId, amount, expireAt, customerName, children, showStatusCTA = true }: PaymentSheetProps) {
const countdown = useCountdown(expireAt)
const [expanded, setExpanded] = React.useState(true) const [expanded, setExpanded] = React.useState(true)
return ( return (
<div className="max-w-md"> <div className="max-w-md">

View File

@ -21,7 +21,6 @@ export function PaymentStatusPage() {
const statusText = data?.status ?? 'pending' const statusText = data?.status ?? 'pending'
const isFinal = ['settlement', 'capture', 'expire', 'cancel', 'deny', 'refund', 'chargeback'].includes(statusText) const isFinal = ['settlement', 'capture', 'expire', 'cancel', 'deny', 'refund', 'chargeback'].includes(statusText)
const isSuccess = statusText === 'settlement' || statusText === 'capture'
function sanitizeUrl(u?: string) { function sanitizeUrl(u?: string) {
return (u || '').replace(/[`\s]+$/g, '').replace(/^\s+|\s+$/g, '').replace(/`/g, '') return (u || '').replace(/[`\s]+$/g, '').replace(/^\s+|\s+$/g, '').replace(/`/g, '')
} }