mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
♻️ Rename Redux action for consistent naming
This commit is contained in:
parent
8341d4ec0e
commit
9075679921
3 changed files with 10 additions and 9 deletions
|
@ -26,12 +26,12 @@ const useCommonConnectionLogic = () => {
|
|||
};
|
||||
|
||||
export const useSandboxConnection = () => {
|
||||
const { connectViaSandbox, isSandboxMode, setSandboxMode } =
|
||||
const { connectToSandbox, isSandboxMode, setSandboxMode } =
|
||||
CommonHooks.useSandbox();
|
||||
const { handleServerError, createErrorNotice } = useCommonConnectionLogic();
|
||||
|
||||
const handleSandboxConnect = async () => {
|
||||
const res = await connectViaSandbox();
|
||||
const res = await connectToSandbox();
|
||||
|
||||
if ( ! res.success || ! res.data ) {
|
||||
handleServerError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue