diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-03-23 16:18:19 -0400 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-03-23 16:18:19 -0400 |
| commit | 4844b69ed6c381fe8e573e77d32302965c4de274 (patch) | |
| tree | 605f08e0019c877564a9631be604d83e67dd7caf /src/utils | |
| parent | 8022d908ca09860424529d818e210d63fff9f398 (diff) | |
updated types, using api/profile
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/friends.ts | 4 | ||||
| -rw-r--r-- | src/utils/users.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/friends.ts b/src/utils/friends.ts index 3398c123..6e3b645a 100644 --- a/src/utils/friends.ts +++ b/src/utils/friends.ts @@ -1,7 +1,7 @@ // Handles click on friend/requested/unfriend button import {RootState} from '../store/rootReducer'; -import {ProfilePreviewType, ProfileType, ScreenType, UserType} from '../types'; +import {ProfilePreviewType, ProfileInfoType, ScreenType, UserType} from '../types'; import {AppDispatch} from '../store/configureStore'; import { addFriend, @@ -25,7 +25,7 @@ import {getUserAsProfilePreviewType} from './users'; export const handleFriendUnfriend = async ( screenType: ScreenType, user: UserType, - profile: ProfileType, + profile: ProfileInfoType, dispatch: AppDispatch, state: RootState, loggedInUser: UserType, diff --git a/src/utils/users.ts b/src/utils/users.ts index af4f3813..d1f416e0 100644 --- a/src/utils/users.ts +++ b/src/utils/users.ts @@ -20,7 +20,7 @@ import {RootState} from './../store/rootReducer'; import { ProfilePreviewType, CategoryPreviewType, - ProfileType, + ProfileInfoType, ScreenType, UserType, } from './../types/types'; @@ -137,7 +137,7 @@ export const getTokenOrLogout = async (dispatch: Function): Promise<string> => { */ export const getUserAsProfilePreviewType = ( passedInUser: UserType, - passedInProfile: ProfileType, + passedInProfile: ProfileInfoType, ): ProfilePreviewType => { const fullName = passedInProfile.name.split(' '); return { |
