Vulcan/packages/vulcan-admin/lib/components/users/columns/AdminUsersName.jsx
2017-08-02 18:56:29 +09:00

18 lines
No EOL
418 B
JavaScript

import React from 'react';
import Users from 'meteor/vulcan:users';
import { Components } from 'meteor/vulcan:core';
const AdminUsersName = ({ document: user, flash }) =>
<div>
<Components.Avatar user={user} link={false}/>
<span>{Users.getDisplayName(user)}</span>
&nbsp;
{_.rest(Users.getGroups(user)).map(group => <code key={group}>{group}</code>)}
</div>
export default AdminUsersName;