From a954d6b6b88485dddc0ccfda634ffd102cb34ccd Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Tue, 22 Dec 2020 08:50:27 -0800 Subject: [TMA 446] Create category (#144) * Added welcome page * Working code * Small fix * Some more cleanup * Fixes * Cleanup * Fix again * Use gradient for white bg as well * Fixed type --- src/store/initialStates.ts | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'src/store/initialStates.ts') diff --git a/src/store/initialStates.ts b/src/store/initialStates.ts index 817af86b..8f4a2e84 100644 --- a/src/store/initialStates.ts +++ b/src/store/initialStates.ts @@ -1,4 +1,4 @@ -import {MomentType} from 'src/types'; +import {MomentCategoryType, MomentType} from '../types'; import { ProfileType, SocialAccountType, @@ -62,6 +62,24 @@ export const NO_BLOCKED_USERS = { blockedUsers: EMPTY_PROFILE_PREVIEW_LIST, }; +export const MOMENT_CATEGORIES_MAP: Record = { + Friends: false, + Adventure: false, + 'Photo Dump': false, + Food: false, + Music: false, + Art: false, + Sports: false, + Fashion: false, + Travel: false, + Pets: false, + Nightlife: false, + DIY: false, + Nature: false, + 'Early Life': false, + Beauty: false, +}; + /** * The dummy userId and username serve the purpose of preventing app crash * For instance, if it may happen that data in our store is not loaded yet for the userXId being visited. @@ -74,6 +92,7 @@ export const EMPTY_USER_X = { followers: EMPTY_PROFILE_PREVIEW_LIST, following: EMPTY_PROFILE_PREVIEW_LIST, moments: EMPTY_MOMENTS_LIST, + momentCategories: MOMENT_CATEGORIES_MAP, socialAccounts: NO_SOCIAL_ACCOUNTS, user: NO_USER, profile: NO_PROFILE, @@ -95,3 +114,7 @@ export const EMPTY_SCREEN_TO_USERS_LIST: Record< [ScreenType.Profile]: EMPTY_USERX_LIST, [ScreenType.Search]: EMPTY_USERX_LIST, }; + +export const INITIAL_CATEGORIES_STATE = { + momentCategories: MOMENT_CATEGORIES_MAP, +}; -- cgit v1.2.3-70-g09d2