Update UserRow.tsx
This commit is contained in:
parent
947fdf72ed
commit
76d671aa8a
1 changed files with 15 additions and 15 deletions
|
@ -49,6 +49,7 @@ export default ({ subuser }: Props) => {
|
|||
<p css={tw`text-2xs text-neutral-500 uppercase`}>Permissions</p>
|
||||
</div>
|
||||
{subuser.uuid !== uuid &&
|
||||
<>
|
||||
<Can action={'user.update'}>
|
||||
<button
|
||||
type={'button'}
|
||||
|
@ -56,14 +57,13 @@ export default ({ subuser }: Props) => {
|
|||
css={tw`block text-sm p-1 md:p-2 text-neutral-500 hover:text-neutral-100 transition-colors duration-150 mx-4`}
|
||||
onClick={() => setVisible(true)}
|
||||
>
|
||||
<FontAwesomeIcon icon={faPencilAlt}/>
|
||||
<FontAwesomeIcon icon={faPencilAlt} />
|
||||
</button>
|
||||
</Can>
|
||||
}
|
||||
{subuser.uuid !== uuid &&
|
||||
<Can action={'user.delete'}>
|
||||
<RemoveSubuserButton subuser={subuser}/>
|
||||
<RemoveSubuserButton subuser={subuser} />
|
||||
</Can>
|
||||
</>
|
||||
}
|
||||
</GreyRowBox>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue