mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
♻️ Simplify hook
This commit is contained in:
parent
91c8bdafb9
commit
b00ef330f4
1 changed files with 1 additions and 3 deletions
|
@ -23,7 +23,6 @@ const useHooks = () => {
|
|||
authenticateWithOAuth,
|
||||
startWebhookSimulation,
|
||||
checkWebhookSimulationState,
|
||||
disconnectMerchant,
|
||||
} = useDispatch( STORE_NAME );
|
||||
|
||||
// Transient accessors.
|
||||
|
@ -79,7 +78,6 @@ const useHooks = () => {
|
|||
productionOnboardingUrl,
|
||||
authenticateWithCredentials,
|
||||
authenticateWithOAuth,
|
||||
disconnectMerchant,
|
||||
merchant,
|
||||
wooSettings,
|
||||
features,
|
||||
|
@ -118,7 +116,7 @@ export const useAuthentication = () => {
|
|||
};
|
||||
|
||||
export const useDisconnectMerchant = () => {
|
||||
const { disconnectMerchant } = useHooks();
|
||||
const { disconnectMerchant } = useDispatch( STORE_NAME );
|
||||
return { disconnectMerchant };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue