Merge branch 'i-1263' into 'develop'

transatable staff badges inside profile

Closes #1263

See merge request soapbox-pub/soapbox!2207
This commit is contained in:
Alex Gleason 2023-01-21 16:15:17 +00:00
commit fa86d1d5dd
1 changed files with 2 additions and 2 deletions

View File

@ -48,9 +48,9 @@ const ProfileInfoPanel: React.FC<IProfileInfoPanel> = ({ account, username }) =>
const getStaffBadge = (): React.ReactNode => { const getStaffBadge = (): React.ReactNode => {
if (account?.admin) { if (account?.admin) {
return <Badge slug='admin' title='Admin' key='staff' />; return <Badge slug='admin' title={<FormattedMessage id='account_moderation_modal.roles.admin' defaultMessage='Admin' />} key='staff' />;
} else if (account?.moderator) { } else if (account?.moderator) {
return <Badge slug='moderator' title='Moderator' key='staff' />; return <Badge slug='moderator' title={<FormattedMessage id='account_moderation_modal.roles.moderator' defaultMessage='Moderator' />} key='staff' />;
} else { } else {
return null; return null;
} }