update credit card mask
This commit is contained in:
@@ -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)
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user