Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
fix the role display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
erinz2020 committed Feb 1, 2024
1 parent a2f489f commit 68b4919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/components/EditUserMetadata.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import AccountCircleOutlinedIcon from '@material-ui/icons/AccountCircleOutlined'
import ForumOutlinedIcon from '@material-ui/icons/ForumOutlined';
import AccountBalanceOutlined from '@material-ui/icons/AccountBalanceOutlined';
import PlaceOutlined from '@material-ui/icons/PlaceOutlined';
import { FormattedMessage } from 'react-intl';
import CustomAlert from './Alert';
import { useReplaceUserProperties } from '../models/users/usePatchUser';
import { sanitizeTwitterHandle } from '../utils/formatters';
Expand All @@ -22,7 +23,6 @@ import PasswordVerificationAlert from './PasswordVerificationAlert';
import StandardDialog from './StandardDialog';
import EntityHeader from './EntityHeader';
import BigAvatar from './profilePhotos/BigAvatar';
import RequestCollaborationButton from './RequestCollaborationButton';
import Text from './Text';
import UserProfileMetadataWrap from './UserProfileMetadataWrap';

Expand Down Expand Up @@ -95,7 +95,6 @@ export default function EditUserMetadata({
userDataLoading={userDataLoading}
/>
}

>
<div
style={{
Expand Down Expand Up @@ -130,7 +129,7 @@ export default function EditUserMetadata({
</div>
</div>
<Chip
label={highestRoleLabelId}
label={<FormattedMessage id={highestRoleLabelId} />}
style={{
marginTop: 14,
color: theme.palette.common.black,
Expand Down
4 changes: 2 additions & 2 deletions src/components/UserProfile.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useMemo } from 'react';
import { useIntl } from 'react-intl';
import { FormattedMessage, useIntl } from 'react-intl';
import { get } from 'lodash-es';

import Grid from '@material-ui/core/Grid';
Expand Down Expand Up @@ -183,7 +183,7 @@ export default function UserProfile({
</div>
</div>
<Chip
label={highestRoleLabelId}
label={<FormattedMessage id={highestRoleLabelId} />}
style={{
marginTop: 14,
color: theme.palette.common.black,
Expand Down

0 comments on commit 68b4919

Please sign in to comment.