mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-25 09:34:16 -05: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());
|
|
}
|
|
};
|
|
}
|