Skip to content

Commit

Permalink
Update admin users page icon display
Browse files Browse the repository at this point in the history
  • Loading branch information
s890506 committed Jul 31, 2020
1 parent 5a4736b commit caadfb9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/admin/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ class UsersPage extends Component {
{
Header: 'ID',
accessor: '_id',
width: 240,
width: 270,
Cell: row => (
<span><Link to={`/admin/user/${row.value}/${row.original.roles.account._id}/${row.original.username}`} className='btn'> <i className='fa fa-edit' /> </Link> <span>{row.value}</span></span>
<span>
<Link to={`/admin/user/${row.value}/${row.original.roles.account._id}/${row.original.username}`} className='btn btn-sm'>
<i className='lnr lnr-pencil' />
</Link>
<span>{row.value}</span>
</span>
)
}, {
Header: '帳號',
Expand Down Expand Up @@ -132,8 +137,8 @@ class UsersPage extends Component {
accessor: '_id',
width: 50,
Cell: row => (
<button className='btn btn-danger' onClick={this.deleteUser.bind(this, row.value)}>
<i className='fa fa-times' />
<button className='btn btn-danger btn-sm' onClick={this.deleteUser.bind(this, row.value)}>
<i className='lnr lnr-cross' />
</button>
)
}]
Expand Down

0 comments on commit caadfb9

Please sign in to comment.