aboutsummaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-29 14:00:39 -0400
committerIvan Chen <ivan@tagg.id>2021-03-29 14:00:39 -0400
commite8324a7278a82d926acceedc10921f0b14e6d403 (patch)
tree646e6771c70bea163c80909567cd785ccd25f3f1 /src/services
parent7ccb796e2cd25d48cbaee07c19b5f66e94859ba8 (diff)
updated helper function, cleaned up code, prevent friends navigation
Diffstat (limited to 'src/services')
-rw-r--r--src/services/UserFriendsService.ts9
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 {