From fe5ff5ec516302811b7323cadf8e3dd0939beea4 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 18 Mar 2021 02:45:46 -0700 Subject: services + --- src/components/profile/Friends.tsx | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'src/components') diff --git a/src/components/profile/Friends.tsx b/src/components/profile/Friends.tsx index a1030b49..36e0ef8a 100644 --- a/src/components/profile/Friends.tsx +++ b/src/components/profile/Friends.tsx @@ -98,22 +98,27 @@ const Friends: React.FC = ({result, screenType, userId}) => { return ( <> - - - Add Friends - - navigation.navigate('InviteFriendsScreen', { - screenType: ScreenType.Profile, - }) - }> - - Find Friends - - - - + {loggedInUser.userId === userId || + (userId === undefined && ( + + + Add Friends + + navigation.navigate('InviteFriendsScreen', { + screenType: ScreenType.Profile, + }) + }> + + + Find Friends + + + + + + ))} Friends -- cgit v1.2.3-70-g09d2