diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-20 17:10:33 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-04-20 17:21:36 -0400 |
commit | 5ff7cab4bd36337b2c86e3d4915a6fc3ceef1ddb (patch) | |
tree | 1620cc8ff132043aca30f8f0998d77a3ecc1add9 /src/components/profile/Friends.tsx | |
parent | 5946e667c55de4ee4e9d5d64ad6e5f3eb5e123dd (diff) |
linted
Diffstat (limited to 'src/components/profile/Friends.tsx')
-rw-r--r-- | src/components/profile/Friends.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/profile/Friends.tsx b/src/components/profile/Friends.tsx index b754b71a..a7a06567 100644 --- a/src/components/profile/Friends.tsx +++ b/src/components/profile/Friends.tsx @@ -1,4 +1,3 @@ -import {useNavigation} from '@react-navigation/native'; import React, {useEffect, useState} from 'react'; import {ScrollView, StyleSheet, Text, View} from 'react-native'; import {checkPermission} from 'react-native-contacts'; @@ -21,14 +20,13 @@ import {ProfilePreview} from '../profile'; interface FriendsProps { result: Array<ProfilePreviewType>; screenType: ScreenType; - userId: string; + userId: string | undefined; } const Friends: React.FC<FriendsProps> = ({result, screenType, userId}) => { const state: RootState = useStore().getState(); const dispatch = useDispatch(); const {user: loggedInUser = NO_USER} = state.user; - const navigation = useNavigation(); const [usersFromContacts, setUsersFromContacts] = useState< ProfilePreviewType[] >([]); |