This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-04-16 11:32:00 -07:00
|
|
|
import { openModal } from './modal';
|
|
|
|
import { changeSetting, saveSettings } from './settings';
|
|
|
|
|
|
|
|
export function showOnboardingOnce() {
|
|
|
|
return (dispatch, getState) => {
|
|
|
|
const alreadySeen = getState().getIn(['settings', 'onboarded']);
|
|
|
|
|
|
|
|
if (!alreadySeen) {
|
|
|
|
dispatch(openModal('ONBOARDING'));
|
|
|
|
dispatch(changeSetting(['onboarded'], true));
|
|
|
|
dispatch(saveSettings());
|
|
|
|
}
|
|
|
|
};
|
2023-02-03 11:52:07 -08:00
|
|
|
}
|