Use styled mxids in member list v2 (#8110)
* Revert "Revert "Use styled mxids in member list (#6328)" (#8107)"
This reverts commit 709e6e78d2
.
* Fix disambiguated profile for bubbles
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
cfabcdda35
commit
bff1ef31d6
13 changed files with 141 additions and 55 deletions
|
@ -64,6 +64,7 @@ function presenceClassForMember(presenceState: string, lastActiveAgo: number, sh
|
|||
|
||||
interface IProps {
|
||||
name?: string;
|
||||
nameJSX?: JSX.Element;
|
||||
title?: string;
|
||||
avatarJsx?: JSX.Element; // <BaseAvatar />
|
||||
className?: string;
|
||||
|
@ -117,7 +118,7 @@ export default class EntityTile extends React.PureComponent<IProps, IState> {
|
|||
mainClassNames[presenceClass] = true;
|
||||
|
||||
let nameEl;
|
||||
const { name } = this.props;
|
||||
const name = this.props.nameJSX || this.props.name;
|
||||
|
||||
if (!this.props.suppressOnHover) {
|
||||
const activeAgo = this.props.presenceLastActiveAgo ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue