Web: People: fixed onUserNameClick

This commit is contained in:
Nikita Gopienko 2021-07-30 11:10:47 +03:00
parent 1648777ffa
commit 37b1cf7a3d

View File

@ -27,8 +27,9 @@ const PeopleTableRow = (props) => {
onContentRowSelect,
groups,
onEmailClick,
onUserNameClick,
} = props;
const { displayName, email, role, statusType } = item;
const { displayName, email, role, statusType, userName } = item;
const nameColor = statusType === "pending" ? "#A3A9AE" : "#333333";
const sideInfoColor = statusType === "pending" ? "#D0D5DA" : "#A3A9AE";
@ -50,6 +51,8 @@ const PeopleTableRow = (props) => {
fontSize="15px"
color={nameColor}
isTextOverflow
href={`/products/people/view/${userName}`}
onClick={onUserNameClick}
>
{displayName}
</Link>