Update UserRow.tsx

This commit is contained in:
Charles Morgan 2020-11-29 19:35:16 -05:00
parent 947fdf72ed
commit 76d671aa8a

View file

@ -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'}
@ -59,11 +60,10 @@ export default ({ subuser }: Props) => {
<FontAwesomeIcon icon={faPencilAlt} />
</button>
</Can>
}
{subuser.uuid !== uuid &&
<Can action={'user.delete'}>
<RemoveSubuserButton subuser={subuser} />
</Can>
</>
}
</GreyRowBox>
);