PLT-2712 Added view members for non-admins in channel and team (#3618)
* Added view members for non-admins in channel and team * changed variable name
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
840b07f704
Коммит
b0090214ef
@@ -17,16 +17,19 @@ export default function UserListRow({user, teamMember, actions, actionProps}) {
|
||||
name = `${Utils.getFullName(user)} (@${user.username})`;
|
||||
}
|
||||
|
||||
const buttons = actions.map((Action, index) => {
|
||||
return (
|
||||
<Action
|
||||
key={index.toString()}
|
||||
user={user}
|
||||
teamMember={teamMember}
|
||||
{...actionProps}
|
||||
/>
|
||||
);
|
||||
});
|
||||
let buttons = null;
|
||||
if (actions) {
|
||||
buttons = actions.map((Action, index) => {
|
||||
return (
|
||||
<Action
|
||||
key={index.toString()}
|
||||
user={user}
|
||||
teamMember={teamMember}
|
||||
{...actionProps}
|
||||
/>
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
Ссылка в новой задаче
Block a user