diff options
author | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-05-03 12:38:59 -0700 |
---|---|---|
committer | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-05-03 12:38:59 -0700 |
commit | 29dd728d82689274bfbf877e8c21630d33bd69cb (patch) | |
tree | e8db16c9e46104065917c2eb94cc15984d095e72 /src | |
parent | caac607ed90c35ad8d4b2787b170e1fd1f165333 (diff) |
TMA-815-Effect for monitoring Changes in Drawer
Diffstat (limited to 'src')
-rw-r--r-- | src/components/profile/ProfileHeader.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
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<ProfileHeaderProps> = ({ } }; + useEffect(() => { + setDrawerVisible(drawerVisible); + }, [drawerVisible]); + return ( <View ref={containerRef} style={styles.container}> <ProfileMoreInfoDrawer @@ -96,6 +100,7 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({ userXName={userXName} setIsOpen={setDrawerVisible} /> + {userId === loggedInUserId && measure && ( <BadgeTutorial uniIconProps={{ |