Skip to content

Commit

Permalink
Use key icon for password reset button
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Jun 29, 2024
1 parent 81ffd8b commit d42794d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bootstrap/manager/src/ui/src/components/User.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LockOpenIcon, UserMinusIcon } from '@heroicons/react/16/solid'
import { KeyIcon, UserMinusIcon } from '@heroicons/react/16/solid'

import Button from './Button'

Expand All @@ -21,7 +21,7 @@ function User ({ user, refreshUsers, className, confirmDelete, changePassword })
<>
<div className={'flex hover:bg-slate-100 rounded p-2 gap-2 ' + className}>
<div className='grow content-center'>{user.username}</div>
<Button title='Change password' color='green' onClick={() => callChangePassword()}><LockOpenIcon className='size-4' aria-hidden='true' /></Button>
<Button title='Change password' color='green' onClick={() => callChangePassword()}><KeyIcon className='size-4' aria-hidden='true' /></Button>
<Button title='Delete' color='red' onClick={() => callDelete()}><UserMinusIcon className='size-4' aria-hidden='true' /></Button>
</div>
</>
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/manager/src/ui/src/settings/UserPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function UserPanel () {
<Button title='Create user' color='green' onClick={() => setCreateUserOpen(true)}><PlusIcon className='size-4' aria-hidden='true' /></Button>
</div>
<div className='flex flex-col'>
{users.map((user, i) => (
{users.map((user) => (
<User
key={user.id}
user={user}
Expand Down

0 comments on commit d42794d

Please sign in to comment.