[MM-51502] - Update email field position in profile popover (#23024)

Co-authored-by: Nevyana Angelova <nevyangelova@Nevyanas-MacBook-Pro.local>
Этот коммит содержится в:
na
2023-04-24 14:37:53 +07:00
коммит произвёл GitHub
родитель 94de9c8175
Коммит 273f572cbe

Просмотреть файл

@@ -524,23 +524,6 @@ class ProfilePopover extends React.PureComponent<ProfilePopoverProps, ProfilePop
{userName}
</div>,
);
const email = this.props.user.email || '';
if (email && !this.props.user.is_bot && !haveOverrideProp) {
dataContent.push(
<div
data-toggle='tooltip'
title={email}
key='user-popover-email'
>
<a
href={'mailto:' + email}
className='text-nowrap text-lowercase user-popover__email pb-1'
>
{email}
</a>
</div>,
);
}
if (this.props.user.position && !haveOverrideProp) {
const position = (this.props.user?.position || '').substring(
0,
@@ -561,6 +544,23 @@ class ProfilePopover extends React.PureComponent<ProfilePopoverProps, ProfilePop
className='divider divider--expanded'
/>,
);
const email = this.props.user.email || '';
if (email && !this.props.user.is_bot && !haveOverrideProp) {
dataContent.push(
<div
data-toggle='tooltip'
title={email}
key='user-popover-email'
>
<a
href={'mailto:' + email}
className='text-nowrap text-lowercase user-popover__email pb-1'
>
{email}
</a>
</div>,
);
}
dataContent.push(
<Pluggable
key='profilePopoverPluggable2'