fix(payment): compile shipped payment components

This commit is contained in:
Clintchiz committed 2026-08-28 09:42:00 +05:30
1 parent 10771f1a2b
commit c578bc0f92
7 files changed
+27 -7

No files matched your search

+6 -1
View File
@@ -1,4 +1,9 @@
component RefundButton {
props { paymentId: string refundable: number partial?: boolean = false action?: string = "/api/payments/refund" }
props {
paymentId: string
refundable: number
partial?: boolean = false
action?: string = "/api/payments/refund"
}
view { <form method="post" action={action}><input type="hidden" name="paymentId" value={paymentId} /><label>Reason<input name="reason" required /></label>{#if partial}<label>Amount<input name="amount" type="number" min="1" max={refundable} /></label>{/if}<button type="submit">Refund</button></form> }
}