mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
19 lines
399 B
JavaScript
19 lines
399 B
JavaScript
|
import { createElement } from '@wordpress/element';
|
||
|
|
||
|
const CardChangeButton = ( { onChangeButtonClick } ) =>
|
||
|
createElement(
|
||
|
'a',
|
||
|
{
|
||
|
className:
|
||
|
'wc-block-checkout-axo-block-card__edit wc-block-axo-change-link',
|
||
|
role: 'button',
|
||
|
onClick: ( event ) => {
|
||
|
event.preventDefault();
|
||
|
onChangeButtonClick();
|
||
|
},
|
||
|
},
|
||
|
'Choose a different card'
|
||
|
);
|
||
|
|
||
|
export default CardChangeButton;
|