diff options
author | Ivan Chen <ivan@tagg.id> | 2021-03-29 14:02:31 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-03-29 14:02:31 -0400 |
commit | 04bf806285e7626644234b7febee2dad5c912f8d (patch) | |
tree | 9ed3ec581792d6a0e1135f02a1d4716890ca75fc /src/components/profile/ProfileHeader.tsx | |
parent | e8324a7278a82d926acceedc10921f0b14e6d403 (diff) | |
parent | 4de1ebd43437712e28a89bb624c5b12afad45cc6 (diff) |
Merge branch 'master' into tma-701-private-account-banner
# Conflicts:
# src/constants/strings.ts
Diffstat (limited to 'src/components/profile/ProfileHeader.tsx')
-rw-r--r-- | src/components/profile/ProfileHeader.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx index b5dda399..2c623c2b 100644 --- a/src/components/profile/ProfileHeader.tsx +++ b/src/components/profile/ProfileHeader.tsx @@ -24,7 +24,7 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({ handleBlockUnblock, }) => { const { - profile: {name = '', university_class = 2021} = {}, + profile: {name = '', university_class = 2021, university}, user: {username: userXName = ''}, } = useSelector((state: RootState) => userXId ? state.userX[screenType][userXId] : state.user, @@ -59,10 +59,7 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({ )} <View style={styles.friendsAndUniversity}> <FriendsCount screenType={screenType} userXId={userXId} /> - <UniversityIcon - university="brown" - university_class={university_class} - /> + <UniversityIcon {...{university, university_class}} /> </View> </View> </View> |