♻️ Unify function- and hook names

This commit is contained in:
Philipp Stracker 2025-01-02 17:59:33 +01:00
parent 6052756268
commit 69d169533d
No known key found for this signature in database
4 changed files with 13 additions and 13 deletions

View file

@ -173,11 +173,11 @@ export const productionOnboardingUrl = function* ( products = [] ) {
};
/**
* Side effect. Initiates a manual connection attempt using the provided client ID and secret.
* Side effect. Initiates a direct connection attempt using the provided client ID and secret.
*
* @return {Action} The action.
*/
export const connectViaIdAndSecret = function* () {
export const connectViaSecret = function* () {
const { clientId, clientSecret, useSandbox } =
yield select( STORE_NAME ).persistentData();

View file

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