diff options
| author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2021-01-16 10:43:03 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-16 10:43:03 -0800 |
| commit | ae9cbb026f6128e732d36138751e319c926c72b1 (patch) | |
| tree | 4946280bb00f8081370c3602a404c041a7cc28d5 /src/store/reducers | |
| parent | 30391867438bb28cbcba9fc9ee2ff6d00027fd86 (diff) | |
| parent | 23ccc2d6441aca0c89d0ba30e9d990b4aedb73cb (diff) | |
Merge pull request #187 from shravyaramesh/tma538-friend-requests
[TMA485] friend request frontend
Diffstat (limited to 'src/store/reducers')
| -rw-r--r-- | src/store/reducers/userXReducer.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/store/reducers/userXReducer.ts b/src/store/reducers/userXReducer.ts index 3b00cf88..9f90d58d 100644 --- a/src/store/reducers/userXReducer.ts +++ b/src/store/reducers/userXReducer.ts @@ -60,6 +60,12 @@ const userXSlice = createSlice({ ].socialAccounts = action.payload.data; }, + userXFriendshipEdited: (state, action) => { + state[<ScreenType>action.payload.screenType][ + action.payload.userId + ].profile.friendship_status = action.payload.data; + }, + resetScreen: (state, action) => { for (let userId in state[<ScreenType>action.payload.screenType]) { state[<ScreenType>action.payload.screenType][userId] = EMPTY_USER_X; @@ -78,6 +84,7 @@ export const { userXProfileFetched, userXSocialsFetched, userXMomentCategoriesFetched, + userXFriendshipEdited, resetScreen, } = userXSlice.actions; export const userXReducer = userXSlice.reducer; |
