mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-21 20:56:50 +00:00
382b2a506a
Port 38c6216082
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
17 lines
432 B
JavaScript
17 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());
|
|
}
|
|
};
|
|
}
|