Initial version of Disconnect button

This commit is contained in:
Philipp Stracker 2025-02-04 18:54:56 +01:00
parent 3c5c348d70
commit 91c8bdafb9
No known key found for this signature in database
3 changed files with 94 additions and 4 deletions

View file

@ -23,6 +23,7 @@ const useHooks = () => {
authenticateWithOAuth,
startWebhookSimulation,
checkWebhookSimulationState,
disconnectMerchant,
} = useDispatch( STORE_NAME );
// Transient accessors.
@ -78,6 +79,7 @@ const useHooks = () => {
productionOnboardingUrl,
authenticateWithCredentials,
authenticateWithOAuth,
disconnectMerchant,
merchant,
wooSettings,
features,
@ -115,6 +117,11 @@ export const useAuthentication = () => {
};
};
export const useDisconnectMerchant = () => {
const { disconnectMerchant } = useHooks();
return { disconnectMerchant };
};
export const useWooSettings = () => {
const { wooSettings } = useHooks();