From 24c166c995f166487758587a7cb46f8576f9d9fe Mon Sep 17 00:00:00 2001 From: Piyush Kumar Date: Wed, 13 Mar 2024 20:42:57 +0530 Subject: [PATCH] remove confirm text input from update user role --- .../settings+/user-management/handle-user.tsx | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/apps/console/routes/_main+/$account+/settings+/user-management/handle-user.tsx b/src/apps/console/routes/_main+/$account+/settings+/user-management/handle-user.tsx index 5c624b914..689c03856 100644 --- a/src/apps/console/routes/_main+/$account+/settings+/user-management/handle-user.tsx +++ b/src/apps/console/routes/_main+/$account+/settings+/user-management/handle-user.tsx @@ -15,7 +15,6 @@ import { IMemberType, mapRoleToDisplayName, } from '~/console/routes/_main+/$account+/settings+/user-management/user-access-resource'; -import { useState } from 'react'; import { IAccountContext } from '../../_layout'; type IDialog = IDialogBase; @@ -36,7 +35,6 @@ const Root = (props: IDialog) => { const api = useConsoleApi(); const { account } = useOutletContext(); - const [inputName, setInputName] = useState(''); const { values, handleChange, handleSubmit, isLoading } = useForm({ initialValues: isUpdate @@ -117,23 +115,6 @@ const Root = (props: IDialog) => { })} - {isUpdate && ( -
-
- Type in confirm to continue. -
-
- { - setInputName(target.value); - }} - // disabled={loading} - autoComplete="off" - /> -
-
- )} @@ -142,7 +123,6 @@ const Root = (props: IDialog) => { type="submit" content={isUpdate ? 'update' : 'Send invite'} variant="primary" - disabled={isUpdate ? inputName !== 'confirm' : false} />