mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-06 14:15:09 -04:00
Hide age, city and gender if null
This commit is contained in:
@@ -60,7 +60,7 @@ export default function ProfileHeader(props: {
|
||||
) : (
|
||||
<span className="font-semibold">{user.name}</span>
|
||||
)}
|
||||
, {profile.age}
|
||||
{profile.age ? `, ${profile.age}` : ''}
|
||||
</span>
|
||||
</Row>
|
||||
<ProfilePrimaryInfo profile={profile}/>
|
||||
|
||||
@@ -17,16 +17,16 @@ export default function ProfilePrimaryInfo(props: { profile: Profile }) {
|
||||
: profile.country
|
||||
return (
|
||||
<Row className="text-ink-700 gap-4 text-sm">
|
||||
<IconWithInfo
|
||||
{profile.city && <IconWithInfo
|
||||
text={`${profile.city ?? ''}, ${stateOrCountry ?? ''}`}
|
||||
icon={<IoLocationOutline className="h-4 w-4" />}
|
||||
/>
|
||||
<IconWithInfo
|
||||
/>}
|
||||
{profile.gender && <IconWithInfo
|
||||
text={capitalize(convertGender(profile.gender as Gender))}
|
||||
icon={
|
||||
<GenderIcon gender={profile.gender as Gender} className="h-4 w-4 " />
|
||||
}
|
||||
/>
|
||||
/>}
|
||||
{profile.height_in_inches != null && (
|
||||
<IconWithInfo
|
||||
text={formatProfileValue('height_in_inches', profile.height_in_inches)}
|
||||
|
||||
Reference in New Issue
Block a user