epic-6-snap-hybrid-complete #18

Merged
root merged 2 commits from epic-6-snap-hybrid-complete into dev 2025-12-04 10:11:23 +00:00
2 changed files with 0 additions and 2 deletions
Showing only changes of commit 6aa9a0658b - Show all commits

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, '')
} }