From 9e67e59ff5ebd1bff4b81101610bfd2532dea511 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Wed, 29 Jun 2022 17:08:30 +0800 Subject: [PATCH] fix(console): remove text input error state from delete form (#1302) --- .../src/pages/ApiResourceDetails/components/DeleteForm/index.tsx | 1 - .../src/pages/ApplicationDetails/components/DeleteForm/index.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/console/src/pages/ApiResourceDetails/components/DeleteForm/index.tsx b/packages/console/src/pages/ApiResourceDetails/components/DeleteForm/index.tsx index cf4d7c2fc..397f80977 100644 --- a/packages/console/src/pages/ApiResourceDetails/components/DeleteForm/index.tsx +++ b/packages/console/src/pages/ApiResourceDetails/components/DeleteForm/index.tsx @@ -70,7 +70,6 @@ const DeleteForm = ({ id, name, onClose }: Props) => { autoFocus value={inputName} placeholder={t('api_resource_details.enter_your_api_resource_name')} - hasError={inputMismatched} onChange={(event) => { setInputName(event.currentTarget.value); }} diff --git a/packages/console/src/pages/ApplicationDetails/components/DeleteForm/index.tsx b/packages/console/src/pages/ApplicationDetails/components/DeleteForm/index.tsx index d9bb1ff89..882b43634 100644 --- a/packages/console/src/pages/ApplicationDetails/components/DeleteForm/index.tsx +++ b/packages/console/src/pages/ApplicationDetails/components/DeleteForm/index.tsx @@ -70,7 +70,6 @@ const DeleteForm = ({ id, name, onClose }: Props) => { autoFocus value={inputName} placeholder={t('application_details.enter_your_application_name')} - hasError={inputMismatched} onChange={(event) => { setInputName(event.currentTarget.value); }}