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
Этот коммит содержится в:
David Lu
2016-07-20 17:00:22 -04:00
коммит произвёл Corey Hulen
родитель 840b07f704
Коммит b0090214ef
7 изменённых файлов: 81 добавлений и 27 удалений

Просмотреть файл

@@ -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