From 29dd728d82689274bfbf877e8c21630d33bd69cb Mon Sep 17 00:00:00 2001 From: ankit-thanekar007 Date: Mon, 3 May 2021 12:38:59 -0700 Subject: TMA-815-Effect for monitoring Changes in Drawer --- src/components/profile/ProfileHeader.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx index 35ec0ea9..1231717f 100644 --- a/src/components/profile/ProfileHeader.tsx +++ b/src/components/profile/ProfileHeader.tsx @@ -86,6 +86,10 @@ const ProfileHeader: React.FC = ({ } }; + useEffect(() => { + setDrawerVisible(drawerVisible); + }, [drawerVisible]); + return ( = ({ userXName={userXName} setIsOpen={setDrawerVisible} /> + {userId === loggedInUserId && measure && (