2017-04-17 03:32:00 +09: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-04 04:52:07 +09:00
|
|
|
}
|