mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Refactor the change shipping address and change card buttons to a more modular structure
This commit is contained in:
parent
3315fbe116
commit
90aa261c8b
27 changed files with 118 additions and 315 deletions
|
@ -1,5 +1,4 @@
|
|||
import { useCallback } from '@wordpress/element';
|
||||
import useFastlaneSdk from "./useFastlaneSdk";
|
||||
|
||||
export const useCardChange = ( fastlaneSdk, setCard, setWooBillingAddress ) => {
|
||||
return useCallback( async () => {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { useCallback, useMemo } from '@wordpress/element';
|
||||
import { useDispatch, useSelect } from '@wordpress/data';
|
||||
import useFastlaneSdk from "./useFastlaneSdk";
|
||||
|
||||
export const useCustomerData = () => {
|
||||
const customerData = useSelect( ( select ) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue