Added welcome page/introduction/onboarding flow

• Added:
- welcome page/introduction/onboarding flow

• Todo:
- clean up code for showing new user the page
- add code for saving profile, cover photos, display name from intro slides
This commit is contained in:
mgabdev
2020-07-14 01:05:05 -05:00
parent 81433b49fc
commit e9475219c9
6 changed files with 334 additions and 172 deletions

View File

@@ -1,8 +1,9 @@
import { changeSetting, saveSettings } from './settings';
import moment from 'moment-mini'
import { changeSetting, saveSettings } from './settings'
export const INTRODUCTION_VERSION = 20181216044202;
export const MIN_ACCOUNT_CREATED_AT_ONBOARDING = moment('2020-07-14').valueOf()
export const closeOnboarding = () => dispatch => {
dispatch(changeSetting(['introductionVersion'], INTRODUCTION_VERSION));
dispatch(saveSettings());
};
export const saveShownOnboarding = () => (dispatch) => {
dispatch(changeSetting(['shownOnboarding'], true))
dispatch(saveSettings())
}