Update UserRow.tsx

This commit is contained in:
Charles Morgan 2020-11-29 18:13:20 -05:00
parent ec99859590
commit 947fdf72ed
1 changed files with 17 additions and 17 deletions

View File

@ -48,8 +48,8 @@ export default ({ subuser }: Props) => {
</p> </p>
<p css={tw`text-2xs text-neutral-500 uppercase`}>Permissions</p> <p css={tw`text-2xs text-neutral-500 uppercase`}>Permissions</p>
</div> </div>
<Can action={'user.update'}>
{subuser.uuid !== uuid && {subuser.uuid !== uuid &&
<Can action={'user.update'}>
<button <button
type={'button'} type={'button'}
aria-label={'Edit subuser'} aria-label={'Edit subuser'}
@ -58,13 +58,13 @@ export default ({ subuser }: Props) => {
> >
<FontAwesomeIcon icon={faPencilAlt}/> <FontAwesomeIcon icon={faPencilAlt}/>
</button> </button>
}
</Can> </Can>
<Can action={'user.delete'}> }
{subuser.uuid !== uuid && {subuser.uuid !== uuid &&
<Can action={'user.delete'}>
<RemoveSubuserButton subuser={subuser}/> <RemoveSubuserButton subuser={subuser}/>
}
</Can> </Can>
}
</GreyRowBox> </GreyRowBox>
); );
}; };