Skip to content

Commit 947fdf7

Browse files
Update UserRow.tsx
1 parent ec99859 commit 947fdf7

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

resources/scripts/components/server/users/UserRow.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,23 @@ export default ({ subuser }: Props) => {
4848
</p>
4949
<p css={tw`text-2xs text-neutral-500 uppercase`}>Permissions</p>
5050
</div>
51-
<Can action={'user.update'}>
52-
{subuser.uuid !== uuid &&
53-
<button
54-
type={'button'}
55-
aria-label={'Edit subuser'}
56-
css={tw`block text-sm p-1 md:p-2 text-neutral-500 hover:text-neutral-100 transition-colors duration-150 mx-4`}
57-
onClick={() => setVisible(true)}
58-
>
59-
<FontAwesomeIcon icon={faPencilAlt}/>
60-
</button>
61-
}
62-
</Can>
63-
<Can action={'user.delete'}>
64-
{subuser.uuid !== uuid &&
65-
<RemoveSubuserButton subuser={subuser}/>
66-
}
67-
</Can>
51+
{subuser.uuid !== uuid &&
52+
<Can action={'user.update'}>
53+
<button
54+
type={'button'}
55+
aria-label={'Edit subuser'}
56+
css={tw`block text-sm p-1 md:p-2 text-neutral-500 hover:text-neutral-100 transition-colors duration-150 mx-4`}
57+
onClick={() => setVisible(true)}
58+
>
59+
<FontAwesomeIcon icon={faPencilAlt}/>
60+
</button>
61+
</Can>
62+
}
63+
{subuser.uuid !== uuid &&
64+
<Can action={'user.delete'}>
65+
<RemoveSubuserButton subuser={subuser}/>
66+
</Can>
67+
}
6868
</GreyRowBox>
6969
);
7070
};

0 commit comments

Comments
 (0)