Add name change to context menu

This commit is contained in:
Bill 2021-07-21 13:19:41 -04:00
parent b6ee3b7dfe
commit 6a002fab81

View File

@ -111,6 +111,10 @@ export const AvatarInfoWidgetOwnAvatarView: FC<AvatarInfoWidgetOwnAvatarViewProp
</ContextMenuHeaderView> </ContextMenuHeaderView>
{ (mode === MODE_NORMAL) && { (mode === MODE_NORMAL) &&
<> <>
{ userData.allowNameChange &&
<ContextMenuListItemView onClick={ event => processAction('change_name') }>
{ LocalizeText('widget.avatar.change_name') }
</ContextMenuListItemView> }
<ContextMenuListItemView onClick={ event => processAction('decorate') }> <ContextMenuListItemView onClick={ event => processAction('decorate') }>
{ LocalizeText('widget.avatar.decorate') } { LocalizeText('widget.avatar.decorate') }
</ContextMenuListItemView> </ContextMenuListItemView>