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/services | |
| parent | 7ccb796e2cd25d48cbaee07c19b5f66e94859ba8 (diff) | |
updated helper function, cleaned up code, prevent friends navigation
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/UserFriendsService.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/services/UserFriendsService.ts b/src/services/UserFriendsService.ts index da39380f..5c41e988 100644 --- a/src/services/UserFriendsService.ts +++ b/src/services/UserFriendsService.ts @@ -1,17 +1,12 @@ -//Abstracted common friends api calls out here - import AsyncStorage from '@react-native-community/async-storage'; import {Alert} from 'react-native'; -import {ContactType, FriendshipStatusType} from '../types'; import { FRIENDS_ENDPOINT, INVITE_FRIEND_ENDPOINT, USERS_FROM_CONTACTS_ENDPOINT, } from '../constants'; -import { - ERROR_SOMETHING_WENT_WRONG, - ERROR_SOMETHING_WENT_WRONG_REFRESH, -} from '../constants/strings'; +import {ERROR_SOMETHING_WENT_WRONG_REFRESH} from '../constants/strings'; +import {ContactType, FriendshipStatusType} from '../types'; export const loadFriends = async (userId: string, token: string) => { try { |
