bigbuffet-rw/app/soapbox/actions/onboarding.ts

14 lines
391 B
TypeScript
Raw Normal View History

import { changeSettingImmediate } from 'soapbox/actions/settings';
2022-04-12 06:51:28 -07:00
/** Repeat the onboading process when we bump the version */
export const ONBOARDING_VERSION = 1;
2022-04-12 06:51:28 -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,
};