From 4189b0dc3d0c4890815b6a1cc67b9ac1d6c188d8 Mon Sep 17 00:00:00 2001 From: Avery Huang <68914997+huang0h@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:14:41 -0400 Subject: [PATCH] allow demoting to standard (#367) --- src/components/forms/changePrivilegeForm/index.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/forms/changePrivilegeForm/index.tsx b/src/components/forms/changePrivilegeForm/index.tsx index 410da6b0..24963886 100644 --- a/src/components/forms/changePrivilegeForm/index.tsx +++ b/src/components/forms/changePrivilegeForm/index.tsx @@ -64,16 +64,14 @@ const ChangePrivilegeForm: React.FC = ({ placeholder={t('change_privilege.new_role')} onChange={onRoleChange} > + + {t('roles.standard')} + {t('roles.admin')} {privilegeLevel === PrivilegeLevel.SUPER_ADMIN && ( - <> - - {t('roles.standard')} - - - {t('roles.super_admin')} - - + + {t('roles.super_admin')} + )}