mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
18 lines
399 B
JavaScript
18 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;
|