update credit card mask

This commit is contained in:
2025-12-27 18:43:08 -03:00
parent d0dcc0a953
commit 976a7da0a9
10 changed files with 268 additions and 93 deletions

View File

@@ -339,11 +339,7 @@ export function Bulk({
type SummaryProps = {
subtotal: number
coupon?: {
code: string
type: 'FIXED' | 'PERCENT'
amount: number
}
coupon?: Coupon
setValue: UseFormSetValue<any>
}
@@ -411,7 +407,7 @@ export function Summary({ subtotal, coupon, setValue }: SummaryProps) {
tabIndex={-1}
variant="ghost"
onClick={() => {
setValue('coupon', undefined)
setValue('coupon', null)
}}
>
<XIcon />
@@ -420,11 +416,7 @@ export function Summary({ subtotal, coupon, setValue }: SummaryProps) {
<Discount
disabled={subtotal === 0}
onChange={(coupon) => {
setValue('coupon', {
// code: sk,
// amount: discount_amount,
// type: discount_type
})
setValue('coupon', coupon)
}}
/>
)}