aboutsummaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-12 17:25:38 -0500
committerIvan Chen <ivan@tagg.id>2021-03-12 17:25:38 -0500
commitd58c534bff5fbe2941fe46f9ad4a3bfb8e4b3700 (patch)
treed3a573417c19a9e1199e40015819a524536e5df9 /src/store
parente645175094525c38beedb9227052582117e4661b (diff)
parent34d94e1dff831aafa984a2f6c9b9b01e2e349154 (diff)
Merge branch 'master' into hotfix-badge-name-fix
# Conflicts: # src/screens/suggestedPeople/SPBody.tsx
Diffstat (limited to 'src/store')
-rw-r--r--src/store/actions/taggUsers.ts4
-rw-r--r--src/store/initialStates.ts14
-rw-r--r--src/store/reducers/taggUsersReducer.ts1
3 files changed, 2 insertions, 17 deletions
diff --git a/src/store/actions/taggUsers.ts b/src/store/actions/taggUsers.ts
index 7b6d4d5e..72ce848b 100644
--- a/src/store/actions/taggUsers.ts
+++ b/src/store/actions/taggUsers.ts
@@ -11,10 +11,10 @@ export const loadRecentlySearched = (): ThunkAction<
> => async (dispatch) => {
try {
const recentSearches = await loadRecentlySearchedUsers();
- const exploreSections = await getAllExploreSections();
+ getAllExploreSections();
dispatch({
type: taggUsersFetched.type,
- payload: {recentSearches, explores: exploreSections},
+ payload: {recentSearches},
});
} catch (error) {
console.log(error);
diff --git a/src/store/initialStates.ts b/src/store/initialStates.ts
index 1a3db433..b43e4a1d 100644
--- a/src/store/initialStates.ts
+++ b/src/store/initialStates.ts
@@ -69,22 +69,8 @@ export const NO_SOCIAL_ACCOUNTS: Record<string, SocialAccountType> = {
Twitter: {posts: []},
};
-export const EMPTY_EXPLORE_SECTIONS: Record<
- ExploreSectionType,
- ProfilePreviewType[]
-> = {
- 'People You May Know': EMPTY_PROFILE_PREVIEW_LIST,
- 'New to Tagg': EMPTY_PROFILE_PREVIEW_LIST,
- 'Trending on Tagg': EMPTY_PROFILE_PREVIEW_LIST,
- "Brown '21": EMPTY_PROFILE_PREVIEW_LIST,
- "Brown '22": EMPTY_PROFILE_PREVIEW_LIST,
- "Brown '23": EMPTY_PROFILE_PREVIEW_LIST,
- "Brown '24": EMPTY_PROFILE_PREVIEW_LIST,
-};
-
export const NO_TAGG_USERS = {
recentSearches: EMPTY_PROFILE_PREVIEW_LIST,
- explores: EMPTY_EXPLORE_SECTIONS,
};
export const NO_SOCIALS = {
diff --git a/src/store/reducers/taggUsersReducer.ts b/src/store/reducers/taggUsersReducer.ts
index 33e2e18d..92973101 100644
--- a/src/store/reducers/taggUsersReducer.ts
+++ b/src/store/reducers/taggUsersReducer.ts
@@ -7,7 +7,6 @@ const taggUsersSlice = createSlice({
reducers: {
taggUsersFetched: (state, action) => {
state.recentSearches = action.payload.recentSearches;
- state.explores = action.payload.explores;
},
},
});