[MM-51502] - Update email field position in profile popover (#23024)
Co-authored-by: Nevyana Angelova <nevyangelova@Nevyanas-MacBook-Pro.local>
Этот коммит содержится в:
@@ -524,23 +524,6 @@ class ProfilePopover extends React.PureComponent<ProfilePopoverProps, ProfilePop
|
|||||||
{userName}
|
{userName}
|
||||||
</div>,
|
</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) {
|
if (this.props.user.position && !haveOverrideProp) {
|
||||||
const position = (this.props.user?.position || '').substring(
|
const position = (this.props.user?.position || '').substring(
|
||||||
0,
|
0,
|
||||||
@@ -561,6 +544,23 @@ class ProfilePopover extends React.PureComponent<ProfilePopoverProps, ProfilePop
|
|||||||
className='divider divider--expanded'
|
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(
|
dataContent.push(
|
||||||
<Pluggable
|
<Pluggable
|
||||||
key='profilePopoverPluggable2'
|
key='profilePopoverPluggable2'
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user