mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
♻️ Update outdated action names
This commit is contained in:
parent
618288529f
commit
80bbf51220
1 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ export const setIsSaving = ( isSaving ) => ( {
|
||||||
* @param {boolean} isBusy
|
* @param {boolean} isBusy
|
||||||
* @return {Action} The action.
|
* @return {Action} The action.
|
||||||
*/
|
*/
|
||||||
export const setManualConnectionIsBusy = ( isBusy ) => ( {
|
export const setIsBusy = ( isBusy ) => ( {
|
||||||
type: ACTION_TYPES.SET_TRANSIENT,
|
type: ACTION_TYPES.SET_TRANSIENT,
|
||||||
payload: { isBusy },
|
payload: { isBusy },
|
||||||
} );
|
} );
|
||||||
|
@ -179,7 +179,7 @@ export const connectViaIdAndSecret = function* () {
|
||||||
const { clientId, clientSecret, useSandbox } =
|
const { clientId, clientSecret, useSandbox } =
|
||||||
yield select( STORE_NAME ).persistentData();
|
yield select( STORE_NAME ).persistentData();
|
||||||
|
|
||||||
yield setManualConnectionIsBusy( true );
|
yield setIsBusy( true );
|
||||||
|
|
||||||
const result = yield {
|
const result = yield {
|
||||||
type: ACTION_TYPES.DO_MANUAL_CONNECTION,
|
type: ACTION_TYPES.DO_MANUAL_CONNECTION,
|
||||||
|
@ -187,7 +187,7 @@ export const connectViaIdAndSecret = function* () {
|
||||||
clientSecret,
|
clientSecret,
|
||||||
useSandbox,
|
useSandbox,
|
||||||
};
|
};
|
||||||
yield setManualConnectionIsBusy( false );
|
yield setIsBusy( false );
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue