aboutsummaryrefslogtreecommitdiff
path: root/src/store/initialStates.ts
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-12-22 08:50:27 -0800
committerGitHub <noreply@github.com>2020-12-22 11:50:27 -0500
commita954d6b6b88485dddc0ccfda634ffd102cb34ccd (patch)
tree560f152dd92ccb482a2bbf6b094060525373322c /src/store/initialStates.ts
parent49ed044f5103cf6288fcf5b3ff6d3d720795860c (diff)
[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
Diffstat (limited to 'src/store/initialStates.ts')
-rw-r--r--src/store/initialStates.ts25
1 files changed, 24 insertions, 1 deletions
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<MomentCategoryType, boolean> = {
+ 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 = <UserXType>{
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,
+};