From 47222416634dc7037c378463c6958d3dfceb039d Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 26 Feb 2021 13:10:20 -0800 Subject: fixed --- src/components/profile/ProfilePreview.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/components/profile') diff --git a/src/components/profile/ProfilePreview.tsx b/src/components/profile/ProfilePreview.tsx index 02ab94e7..2f107609 100644 --- a/src/components/profile/ProfilePreview.tsx +++ b/src/components/profile/ProfilePreview.tsx @@ -37,12 +37,14 @@ interface ProfilePreviewProps extends ViewProps { profilePreview: ProfilePreviewType; previewType: PreviewType; screenType: ScreenType; + setMFDrawer?: Function; } const ProfilePreview: React.FC = ({ profilePreview: {username, first_name, last_name, id, thumbnail_url}, previewType, screenType, + setMFDrawer, }) => { const navigation = useNavigation(); const {user: loggedInUser} = useSelector((state: RootState) => state.user); @@ -139,6 +141,10 @@ const ProfilePreview: React.FC = ({ ); } + if (setMFDrawer) { + setMFDrawer(false); + } + navigation.push('Profile', { userXId, screenType, -- cgit v1.2.3-70-g09d2 From 8e48253d51f10fde40af25868a45a4c1a2fa8265 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 26 Feb 2021 13:16:20 -0800 Subject: comment --- src/components/profile/ProfilePreview.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/components/profile') diff --git a/src/components/profile/ProfilePreview.tsx b/src/components/profile/ProfilePreview.tsx index 2f107609..0021b1c6 100644 --- a/src/components/profile/ProfilePreview.tsx +++ b/src/components/profile/ProfilePreview.tsx @@ -141,6 +141,7 @@ const ProfilePreview: React.FC = ({ ); } + // Close Mutual Friends drawer on suggested people upon navigation if (setMFDrawer) { setMFDrawer(false); } -- cgit v1.2.3-70-g09d2