Skip to content
Snippets Groups Projects
Commit ecc64b2d authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

refactor(admin): change user details in user table

parent ed57e4cf
No related branches found
No related tags found
No related merge requests found
......@@ -10,18 +10,27 @@ import { compose, withState, withHandlers } from 'recompose'
import { Pagination } from './'
const TableRow = ({ toggleUser, selected, email, username, type }) => (
const TableRow = ({
toggleUser,
selected,
email,
roles,
username,
firstName = '',
lastName = '',
affiliation,
isConfirmed,
}) => (
<Row>
<td>
<Input checked={selected} onClick={toggleUser} type="checkbox" />
</td>
<td>{email}</td>
<td>{username}</td>
<td>affiliation here</td>
<td>country here</td>
<td>{type}</td>
<td>{`${firstName} ${lastName}`}</td>
<td>{affiliation}</td>
<td>{roles && roles.map(r => <div key={r}>{r}</div>)}</td>
<Status>
<span>status</span>
<span>{isConfirmed ? 'Confirmed' : 'Invited'}</span>
</Status>
</Row>
)
......@@ -90,7 +99,6 @@ const Users = ({
<td>Email</td>
<td>Full name</td>
<td>Affiliation</td>
<td>Country</td>
<td>Roles</td>
<td>Status</td>
</tr>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment