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