fix: optimization
This commit is contained in:
parent
94271bacd0
commit
c808e43b79
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 374 KiB |
@ -34,7 +34,7 @@ export function ApplePayButton({ onSuccess, onError }: ApplePayButtonProps): JSX
|
|||||||
if (data === null) return
|
if (data === null) return
|
||||||
const buttonOptions: ApplePayButtonOptions = {
|
const buttonOptions: ApplePayButtonOptions = {
|
||||||
buttonColor: 'black',
|
buttonColor: 'black',
|
||||||
buttonType: 'pay',
|
buttonType: 'plain',
|
||||||
locale: i18n.language
|
locale: i18n.language
|
||||||
}
|
}
|
||||||
applePay?.setPaymentIntent(data)
|
applePay?.setPaymentIntent(data)
|
||||||
|
|||||||
@ -34,7 +34,7 @@ export function GooglePayButton({ onSuccess, onError }: GooglePayButtonProps): J
|
|||||||
if (data === null) return
|
if (data === null) return
|
||||||
const buttonOptions: GooglePayButtonOptions = {
|
const buttonOptions: GooglePayButtonOptions = {
|
||||||
buttonColor: 'black',
|
buttonColor: 'black',
|
||||||
buttonType: 'pay',
|
buttonType: 'plain',
|
||||||
buttonLocale: i18n.language,
|
buttonLocale: i18n.language,
|
||||||
buttonSizeMode: 'fill',
|
buttonSizeMode: 'fill',
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user