Introduce “completed” flag for Redux store

This commit is contained in:
Philipp Stracker 2024-10-28 17:00:07 +01:00
parent b369756cfd
commit dbd37fc282
No known key found for this signature in database
5 changed files with 39 additions and 1 deletions

View file

@ -16,6 +16,19 @@ export const setIsSaving = ( isSaving ) => {
};
};
/**
* Persistent.Set the "onboarding completed" flag which shows or hides the wizard.
*
* @param {boolean} completed
* @return {{type: string, payload}} The action.
*/
export const setCompleted = ( completed ) => {
return {
type: ACTION_TYPES.SET_ONBOARDING_COMPLETED,
completed,
};
};
/**
* Persistent. Set the full onboarding details, usually during app initialization.
*