mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
♻️ Unify function- and hook names
This commit is contained in:
parent
6052756268
commit
69d169533d
4 changed files with 13 additions and 13 deletions
|
@ -33,7 +33,7 @@ const useHooks = () => {
|
|||
setClientSecret,
|
||||
sandboxOnboardingUrl,
|
||||
productionOnboardingUrl,
|
||||
connectViaIdAndSecret,
|
||||
connectViaSecret,
|
||||
} = useDispatch( STORE_NAME );
|
||||
|
||||
// Transient accessors.
|
||||
|
@ -79,7 +79,7 @@ const useHooks = () => {
|
|||
},
|
||||
sandboxOnboardingUrl,
|
||||
productionOnboardingUrl,
|
||||
connectViaIdAndSecret,
|
||||
connectViaSecret,
|
||||
merchant,
|
||||
wooSettings,
|
||||
};
|
||||
|
@ -105,7 +105,7 @@ export const useAuthentication = () => {
|
|||
setClientId,
|
||||
clientSecret,
|
||||
setClientSecret,
|
||||
connectViaIdAndSecret,
|
||||
connectViaSecret,
|
||||
} = useHooks();
|
||||
|
||||
return {
|
||||
|
@ -115,7 +115,7 @@ export const useAuthentication = () => {
|
|||
setClientId,
|
||||
clientSecret,
|
||||
setClientSecret,
|
||||
connectViaIdAndSecret,
|
||||
connectViaSecret,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue