♻️ Move sandbox & manual-connect to common store

This commit is contained in:
Philipp Stracker 2024-11-21 16:16:20 +01:00
parent 2b2b24e434
commit faff0baa43
No known key found for this signature in database
10 changed files with 169 additions and 146 deletions

View file

@ -145,22 +145,3 @@ export const persist = function* () {
yield { type: ACTION_TYPES.DO_PERSIST_DATA, data };
};
/**
* Side effect. Initiates a manual connection attempt using the provided client ID and secret.
*
* @return {Action} The action.
*/
export const connectViaIdAndSecret = function* () {
const { clientId, clientSecret, useSandbox } =
yield select( STORE_NAME ).persistentData();
const result = yield {
type: ACTION_TYPES.DO_MANUAL_CONNECTION,
clientId,
clientSecret,
useSandbox,
};
return result;
};