woocommerce-paypal-payments/modules/ppcp-axo-block/resources/js/components/Shipping/ShippingChangeButton.js

20 lines
403 B
JavaScript
Raw Normal View History

2024-09-25 00:09:27 +02:00
import { __ } from '@wordpress/i18n';
const ShippingChangeButton = ( { onChangeShippingAddressClick } ) => (
<a
className="wc-block-axo-change-link"
role="button"
onClick={ ( event ) => {
event.preventDefault();
onChangeShippingAddressClick();
} }
>
2024-09-25 00:09:27 +02:00
{ __(
'Choose a different shipping address',
'woocommerce-paypal-payments'
) }
</a>
);
export default ShippingChangeButton;