mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
♻️ Rename ambgious hooks
Two different hooks and one store property shared the same name. This commit resolves the ambiguity and makes all names unique
This commit is contained in:
parent
565ee96bb6
commit
084327c635
3 changed files with 5 additions and 5 deletions
|
@ -189,7 +189,7 @@ export const useSandboxConnection = () => {
|
|||
};
|
||||
};
|
||||
|
||||
export const useManualConnection = () => {
|
||||
export const useDirectAuthentication = () => {
|
||||
const { handleFailed, handleCompleted, createErrorNotice } =
|
||||
useConnectionBase();
|
||||
const { withActivity } = CommonHooks.useBusyState();
|
||||
|
@ -201,7 +201,7 @@ export const useManualConnection = () => {
|
|||
setClientId,
|
||||
clientSecret,
|
||||
setClientSecret,
|
||||
} = CommonHooks.useManualConnection();
|
||||
} = CommonHooks.useAuthentication();
|
||||
|
||||
const handleConnectViaIdAndSecret = async ( { validation } = {} ) => {
|
||||
return withActivity(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue