mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-29 10:13:41 +01:00
382b2a506a
Port 38c6216082
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
16 lines
432 B
JavaScript
16 lines
432 B
JavaScript
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({
|
|
modalType: 'ONBOARDING',
|
|
}));
|
|
dispatch(changeSetting(['onboarded'], true));
|
|
dispatch(saveSettings());
|
|
}
|
|
};
|
|
}
|