aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfileHeader.tsx
diff options
context:
space:
mode:
authorankit-thanekar007 <ankit.thanekar007@gmail.com>2021-05-03 12:38:59 -0700
committerankit-thanekar007 <ankit.thanekar007@gmail.com>2021-05-03 12:38:59 -0700
commit29dd728d82689274bfbf877e8c21630d33bd69cb (patch)
treee8db16c9e46104065917c2eb94cc15984d095e72 /src/components/profile/ProfileHeader.tsx
parentcaac607ed90c35ad8d4b2787b170e1fd1f165333 (diff)
TMA-815-Effect for monitoring Changes in Drawer
Diffstat (limited to 'src/components/profile/ProfileHeader.tsx')
-rw-r--r--src/components/profile/ProfileHeader.tsx5
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={{