2022-04-20 10:08:49 -07:00
|
|
|
import { changeSettingImmediate } from 'soapbox/actions/settings';
|
2022-04-12 06:51:28 -07:00
|
|
|
|
2022-04-20 10:08:49 -07:00
|
|
|
/** Repeat the onboading process when we bump the version */
|
|
|
|
export const ONBOARDING_VERSION = 1;
|
2022-04-12 06:51:28 -07:00
|
|
|
|
2022-04-20 10:08:49 -07:00
|
|
|
/** Finish onboarding and store the setting */
|
|
|
|
const endOnboarding = () => (dispatch: React.Dispatch<any>) => {
|
|
|
|
dispatch(changeSettingImmediate(['onboardingVersion'], ONBOARDING_VERSION));
|
2022-04-12 06:51:28 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
export {
|
|
|
|
endOnboarding,
|
|
|
|
};
|