add tooltip to user names in userlist
This commit is contained in:
parent
5d2f295b03
commit
f332af10ba
@ -2,6 +2,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { defineMessages } from 'react-intl';
|
||||
import Icon from '/imports/ui/components/icon/component';
|
||||
import TooltipContainer from '/imports/ui/components/tooltip/container';
|
||||
import _ from 'lodash';
|
||||
import { styles } from './styles';
|
||||
|
||||
@ -121,10 +122,12 @@ const UserName = (props) => {
|
||||
aria-expanded={isActionsOpen}
|
||||
>
|
||||
<span aria-hidden className={styles.userNameMain}>
|
||||
<span>
|
||||
{user.name}
|
||||
|
||||
</span>
|
||||
<TooltipContainer title={user.name}>
|
||||
<span>
|
||||
{user.name}
|
||||
|
||||
</span>
|
||||
</TooltipContainer>
|
||||
<i>{(isMe(user.userId)) ? `(${intl.formatMessage(messages.you)})` : ''}</i>
|
||||
</span>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user