diff options
| author | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-20 14:42:02 -0700 |
|---|---|---|
| committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-20 14:42:02 -0700 |
| commit | db9c1d584403eddd49666d031d1f37f387720b44 (patch) | |
| tree | a797666df2def873637ee5d813d3b45f5c1556d0 /src/screens/profile/InviteFriendsScreen.tsx | |
| parent | 5bafa8fd6a90ef75f89251dfa13ec21dc73ac99d (diff) | |
lint errors
Diffstat (limited to 'src/screens/profile/InviteFriendsScreen.tsx')
| -rw-r--r-- | src/screens/profile/InviteFriendsScreen.tsx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/screens/profile/InviteFriendsScreen.tsx b/src/screens/profile/InviteFriendsScreen.tsx index 24a4c821..49acf1b7 100644 --- a/src/screens/profile/InviteFriendsScreen.tsx +++ b/src/screens/profile/InviteFriendsScreen.tsx @@ -46,16 +46,7 @@ export type SearchResultType = { pendingUsers: InviteContactType[]; }; -type InviteFriendsScreenRouteProp = RouteProp< - MainStackParams, - 'InviteFriendsScreen' ->; - -interface InviteFriendsScreenProps { - route: InviteFriendsScreenRouteProp; -} - -const InviteFriendsScreen: React.FC<InviteFriendsScreenProps> = ({route}) => { +const InviteFriendsScreen: React.FC = () => { const navigation = useNavigation(); const [usersFromContacts, setUsersFromContacts] = useState< ProfilePreviewType[] @@ -85,6 +76,7 @@ const InviteFriendsScreen: React.FC<InviteFriendsScreenProps> = ({route}) => { }), [invitesLeft], ); + useEffect(() => { const handleFindFriends = () => { extractContacts().then(async (retrievedContacts) => { |
