Skip to content

Commit

Permalink
decode user role
Browse files Browse the repository at this point in the history
  • Loading branch information
arrested-developer committed Oct 5, 2019
1 parent d82a9a7 commit 1328907
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Admin/Users/UserListItem.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import React from 'react';
import { List, Icon } from 'antd';
import { RoleTile, UserTitle } from './Users.style';
import { renderUserDetails } from '../../../constants/users';

const Title = ({ name, status, role }) => {
return (
<UserTitle>
<div style={{ marginRight: '0.4rem' }}>{name}</div>
<div>
<RoleTile>{role}</RoleTile>
<RoleTile>{renderUserDetails[role]}</RoleTile>
{status !== 'unverified' ? (
<Icon type="check" style={{ marginLeft: '0.5rem', color: 'green' }} />
) : (
Expand Down

0 comments on commit 1328907

Please sign in to comment.