diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-03-29 14:00:39 -0400 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-03-29 14:00:39 -0400 |
| commit | e8324a7278a82d926acceedc10921f0b14e6d403 (patch) | |
| tree | 646e6771c70bea163c80909567cd785ccd25f3f1 /src/store | |
| parent | 7ccb796e2cd25d48cbaee07c19b5f66e94859ba8 (diff) | |
updated helper function, cleaned up code, prevent friends navigation
Diffstat (limited to 'src/store')
| -rw-r--r-- | src/store/actions/userFriends.ts | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/store/actions/userFriends.ts b/src/store/actions/userFriends.ts index 9da3cb4a..4183d0f6 100644 --- a/src/store/actions/userFriends.ts +++ b/src/store/actions/userFriends.ts @@ -1,25 +1,24 @@ -import {getTokenOrLogout, userXInStore} from '../../utils'; -import {RootState} from '../rootReducer'; -import { - FriendshipStatusType, - ProfilePreviewType, - ScreenType, - UserType, -} from '../../types/types'; +import {Action, ThunkAction} from '@reduxjs/toolkit'; import { acceptFriendRequestService, addFriendService, + deleteFriendshipService, friendOrUnfriendUser, loadFriends, - deleteFriendshipService, } from '../../services'; -import {Action, ThunkAction} from '@reduxjs/toolkit'; import { - userFriendsFetched, + FriendshipStatusType, + ProfilePreviewType, + ScreenType, + UserType, +} from '../../types/types'; +import {getTokenOrLogout, userXInStore} from '../../utils'; +import { updateFriends, + userFriendsFetched, userXFriendshipEdited, - userLoggedIn, } from '../reducers'; +import {RootState} from '../rootReducer'; export const loadFriendsData = ( userId: string, |
