♻️ Simplify hook

This commit is contained in:
Philipp Stracker 2025-02-04 21:14:36 +01:00
parent 91c8bdafb9
commit b00ef330f4
No known key found for this signature in database

View file

@ -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 };
};