mirror of
https://github.com/funamitech/mastodon
synced 2024-12-15 15:18:30 +09: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());
|
|
}
|
|
};
|
|
}
|