X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fusers%2FProfile.js;h=a8a4e95143d40891dc631835249403d6621644b8;hb=4f4b2fd64141cbbff953881e2705602a00b85df5;hp=e2fe2e790be5e3739a52da8e266d0212b8937ac8;hpb=2ab05ab7927e8b21887ffa42d04eb9d4ff899382;p=alttp.git diff --git a/resources/js/components/users/Profile.js b/resources/js/components/users/Profile.js index e2fe2e7..a8a4e95 100644 --- a/resources/js/components/users/Profile.js +++ b/resources/js/components/users/Profile.js @@ -5,13 +5,18 @@ import { withTranslation } from 'react-i18next'; import Box from './Box'; import Records from './Records'; +import EditNicknameButton from './EditNicknameButton'; import EditStreamLinkButton from './EditStreamLinkButton'; import Participation from './Participation'; import Icon from '../common/Icon'; import i18n from '../../i18n'; const Profile = ({ user }) => -

{user.username}

+

+ {user.nickname || user.username} + {' '} + +

{i18n.t('users.discordTag')}

@@ -62,6 +67,7 @@ const Profile = ({ user }) => Profile.propTypes = { user: PropTypes.shape({ + nickname: PropTypes.string, participation: PropTypes.arrayOf(PropTypes.shape({ })), round_first_count: PropTypes.number,