From a13dcb5110245bb554d79e779c4942e6f5aaf18a Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Tue, 27 Apr 2021 10:46:17 -0400
Subject: refactored avatar

---
 src/components/profile/ProfileHeader.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/profile/ProfileHeader.tsx')

diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx
index 35ec0ea9..db56b216 100644
--- a/src/components/profile/ProfileHeader.tsx
+++ b/src/components/profile/ProfileHeader.tsx
@@ -8,7 +8,7 @@ import {RootState} from '../../store/rootreducer';
 import {ScreenType} from '../../types';
 import {hasSeenBadgeTutorial, normalize} from '../../utils';
 import BadgeDetailView from '../common/BadgeDetailView';
-import Avatar from './Avatar';
+import TaggAvatar from './TaggAvatar';
 import BadgeTutorial from './BadgeTutorial';
 import FriendsCount from './FriendsCount';
 import ProfileMoreInfoDrawer from './ProfileMoreInfoDrawer';
@@ -107,7 +107,7 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
         />
       )}
       <View style={styles.row}>
-        <Avatar
+        <TaggAvatar
           style={styles.avatar}
           userXId={userXId}
           screenType={screenType}
-- 
cgit v1.2.3-70-g09d2


From 745d04cd5a9709d1ca4dc417fa1cf0c882ea587c Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Tue, 27 Apr 2021 11:22:20 -0400
Subject: added numOfLines

---
 src/components/profile/ProfileHeader.tsx | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

(limited to 'src/components/profile/ProfileHeader.tsx')

diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx
index 35ec0ea9..62c2e1e3 100644
--- a/src/components/profile/ProfileHeader.tsx
+++ b/src/components/profile/ProfileHeader.tsx
@@ -45,7 +45,6 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
 
   const [drawerVisible, setDrawerVisible] = useState(false);
   const [showBadgeView, setBadgeViewVisible] = useState(false);
-  const [firstName, lastName] = [...name.split(' ')];
 
   const containerRef = useRef(null);
   const childRef = useRef(null);
@@ -113,15 +112,9 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
           screenType={screenType}
         />
         <View style={styles.header}>
-          {name.length <= 16 ? (
-            <Text style={styles.name}>{name}</Text>
-          ) : (
-            <View>
-              <Text style={styles.name}>{firstName}</Text>
-              <Text style={styles.name}>{lastName}</Text>
-            </View>
-          )}
-
+          <Text style={styles.name} numberOfLines={2}>
+            {name}
+          </Text>
           <View style={styles.friendsAndUniversity}>
             <FriendsCount screenType={screenType} userXId={userXId} />
             <TouchableOpacity
-- 
cgit v1.2.3-70-g09d2


From 29dd728d82689274bfbf877e8c21630d33bd69cb Mon Sep 17 00:00:00 2001
From: ankit-thanekar007 <ankit.thanekar007@gmail.com>
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/components/profile/ProfileHeader.tsx')

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={{
-- 
cgit v1.2.3-70-g09d2

