Display custom profile fields on mobile

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1160
This commit is contained in:
Alex Gleason 2022-11-26 14:36:09 -06:00
parent e114b1d362
commit 8c55af5b5e
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -13,6 +13,7 @@ import { badgeToTag, getBadges as getAccountBadges } from 'soapbox/utils/badges'
import { capitalize } from 'soapbox/utils/strings';
import ProfileFamiliarFollowers from './profile-familiar-followers';
import ProfileField from './profile-field';
import ProfileStats from './profile-stats';
import type { Account } from 'soapbox/types/entities';
@ -231,6 +232,14 @@ const ProfileInfoPanel: React.FC<IProfileInfoPanel> = ({ account, username }) =>
<ProfileFamiliarFollowers account={account} />
</Stack>
{account.fields.size > 0 && (
<Stack space={2} className='mt-4 xl:hidden'>
{account.fields.map((field, i) => (
<ProfileField field={field} key={i} />
))}
</Stack>
)}
</div>
);
};