0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Updated owner role box in user details

refs. https://github.com/TryGhost/Team/issues/3351
This commit is contained in:
Peter Zimon 2023-06-02 11:30:11 +02:00
parent 5386fc923f
commit fb6c79906a
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5px"><g><path d="M21.92,17l1.32-10a.75.75,0,0,0-1.08-.78L17.88,9.56a.74.74,0,0,1-1.09-.16L12.56,3.22a.74.74,0,0,0-1.12,0L7.21,9.4a.74.74,0,0,1-1.09.16L1.84,6.3a.75.75,0,0,0-1.08.78L2.08,17Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><line x1="2.25" y1="21.03" x2="21.75" y2="21.03" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line></g></svg>

After

Width:  |  Height:  |  Size: 502 B

View file

@ -1,6 +1,7 @@
import Avatar from '../../../../admin-x-ds/global/Avatar'; import Avatar from '../../../../admin-x-ds/global/Avatar';
import Button from '../../../../admin-x-ds/global/Button'; import Button from '../../../../admin-x-ds/global/Button';
import Heading from '../../../../admin-x-ds/global/Heading'; import Heading from '../../../../admin-x-ds/global/Heading';
import Icon from '../../../../admin-x-ds/global/Icon';
import IconButton from '../../../../admin-x-ds/global/IconButton'; import IconButton from '../../../../admin-x-ds/global/IconButton';
import Menu from '../../../../admin-x-ds/global/Menu'; import Menu from '../../../../admin-x-ds/global/Menu';
import Modal from '../../../../admin-x-ds/global/Modal'; import Modal from '../../../../admin-x-ds/global/Modal';
@ -36,7 +37,8 @@ const RoleSelector: React.FC<UserDetailProps> = ({user, setUserData}) => {
return ( return (
<> <>
<Heading level={6}>Role</Heading> <Heading level={6}>Role</Heading>
<div> <div className='flex h-[295px] flex-col items-center justify-center gap-3 bg-grey-75 px-10 py-20 text-center text-sm text-grey-800'>
<Icon color='grey-800' name='crown' size='lg' />
This user is the owner of the site. To change their role, you need to transfer the ownership first. This user is the owner of the site. To change their role, you need to transfer the ownership first.
</div> </div>
</> </>