Some style fixes

This commit is contained in:
Adolfo Reyna
2023-01-25 14:34:23 -05:00
parent 93b84ada33
commit 03e20edbcc
7 changed files with 17 additions and 14 deletions

View File

@@ -50,6 +50,7 @@ let UserName = ({ profileid, hideIcon }) => {
icon = icon === "person-outline" && profile.subscription && profile.subscription > (new Date() - 0) ? "assignment-ind" : icon;
icon = icon === "group" && profile.isCourse ? "subscriptions" : icon;
icon = icon === "group" && profile.isPrivate ? "screen-lock-portrait" : icon;
const fullName = " " + profile.profile?.firstName + " " + profile.profile?.lastName;
const onPress = () => {
return navigation.navigate('Profile', { profileid })
@@ -57,11 +58,9 @@ let UserName = ({ profileid, hideIcon }) => {
return (
<Text onPress={onPress}>
<Text style={{ paddingTop: 10 }}>
{!hideIcon ? <Icon name={icon} size={18} /> : <></>}
</Text>
<Text> {profile.profile && profile.profile.firstName} {profile.profile && profile.profile.lastName}</Text>
{!hideIcon ?
<Icon name={icon} style={{fontSize:13, marginRight: 10}} /> : <></>}
{fullName}
</Text>
);
}