mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
19 lines
403 B
JavaScript
19 lines
403 B
JavaScript
import { __ } from '@wordpress/i18n';
|
|
|
|
const ShippingChangeButton = ( { onChangeShippingAddressClick } ) => (
|
|
<a
|
|
className="wc-block-axo-change-link"
|
|
role="button"
|
|
onClick={ ( event ) => {
|
|
event.preventDefault();
|
|
onChangeShippingAddressClick();
|
|
} }
|
|
>
|
|
{ __(
|
|
'Choose a different shipping address',
|
|
'woocommerce-paypal-payments'
|
|
) }
|
|
</a>
|
|
);
|
|
|
|
export default ShippingChangeButton;
|