♻️ Rename actions for better semantics

This commit is contained in:
Philipp Stracker 2024-12-19 13:26:19 +01:00
parent da96c084ab
commit 1e26852aa1
No known key found for this signature in database
3 changed files with 14 additions and 14 deletions

View file

@ -118,11 +118,11 @@ const useConnectionAttempt = ( connectFn, errorMessage ) => {
};
export const useSandboxConnection = () => {
const { connectToSandbox, isSandboxMode, setSandboxMode } =
const { sandboxOnboardingUrl, isSandboxMode, setSandboxMode } =
CommonHooks.useSandbox();
const { withActivity } = CommonHooks.useBusyState();
const connectionAttempt = useConnectionAttempt(
connectToSandbox,
sandboxOnboardingUrl,
MESSAGES.SANDBOX_ERROR
);
@ -142,11 +142,11 @@ export const useSandboxConnection = () => {
};
export const useProductionConnection = () => {
const { connectToProduction } = CommonHooks.useProduction();
const { productionOnboardingUrl } = CommonHooks.useProduction();
const { withActivity } = CommonHooks.useBusyState();
const products = OnboardingHooks.useDetermineProducts();
const connectionAttempt = useConnectionAttempt(
() => connectToProduction( products ),
() => productionOnboardingUrl( products ),
MESSAGES.PRODUCTION_ERROR
);