aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfileHeader.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <37447613+shravyaramesh@users.noreply.github.com>2021-04-23 15:06:01 -0700
committerGitHub <noreply@github.com>2021-04-23 15:06:01 -0700
commita27963c51aa2c0b65dd23b5e7211addf5995046f (patch)
tree3c2b2328384630b6388ed77773ee6470e17df23d /src/components/profile/ProfileHeader.tsx
parentce5bf93fef3f5108e0dca35bf24accb4d9d654bb (diff)
parent5e247c2045fa53616008aae73f0192ffed048709 (diff)
Merge branch 'master' into tma-807-onpress-indicator
Diffstat (limited to 'src/components/profile/ProfileHeader.tsx')
-rw-r--r--src/components/profile/ProfileHeader.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx
index 90206f8d..82eda258 100644
--- a/src/components/profile/ProfileHeader.tsx
+++ b/src/components/profile/ProfileHeader.tsx
@@ -18,6 +18,7 @@ type ProfileHeaderProps = {
screenType: ScreenType;
isBlocked: boolean;
handleBlockUnblock: () => void;
+ isPrivate?: boolean;
};
const ProfileHeader: React.FC<ProfileHeaderProps> = ({
@@ -25,6 +26,7 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
screenType,
isBlocked,
handleBlockUnblock,
+ isPrivate,
}) => {
const {
profile: {name = '', university_class = 2021, university},
@@ -109,11 +111,9 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
<View style={styles.friendsAndUniversity}>
<FriendsCount screenType={screenType} userXId={userXId} />
-
<TouchableOpacity
- disabled={userId === loggedInUserId ? false : true}
onPress={() => {
- if (userId === loggedInUserId) {
+ if (!isPrivate) {
setBadgeViewVisible(true);
}
}}>
@@ -126,7 +126,6 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
university,
university_class,
needsShadow: true,
- // textStyle: getTextColor(),
}}
/>
)}