From a9c4d9abb90168a5ad720bf10c71fe0559a0cf34 Mon Sep 17 00:00:00 2001 From: NlightN22 Date: Sat, 30 Nov 2024 21:06:09 +0700 Subject: [PATCH] try to fix warning from chrom about form --- src/pages/SettingsPage.tsx | 3 +- src/widgets/OIDPSettingsForm.tsx | 101 ++++++++++++++++--------------- 2 files changed, 55 insertions(+), 49 deletions(-) diff --git a/src/pages/SettingsPage.tsx b/src/pages/SettingsPage.tsx index 6f3f0a8..22d85c6 100644 --- a/src/pages/SettingsPage.tsx +++ b/src/pages/SettingsPage.tsx @@ -46,10 +46,11 @@ const SettingsPage = () => { : null } - + { showRoles && allRoles ? getRoles.mutate()} /> diff --git a/src/widgets/OIDPSettingsForm.tsx b/src/widgets/OIDPSettingsForm.tsx index 21d17a7..7502bfa 100644 --- a/src/widgets/OIDPSettingsForm.tsx +++ b/src/widgets/OIDPSettingsForm.tsx @@ -16,6 +16,13 @@ interface OIDPSettingsFormProps { isConfigValid?: (valid: boolean) => void } +/** + * [DOM] Multiple forms should be contained in their own form elements; break up complex forms into ones that represent a single action: (More info: https://goo.gl/9p2vKq) + * This is because you have several type=password inside one form + * Can not fixed + * + */ + const OIDPSettingsForm: React.FC = ({ isConfigValid }) => { @@ -98,54 +105,52 @@ const OIDPSettingsForm: React.FC = ({ if (isError) return return ( - <> -
- - - - - - - - - - - +
+ + + + + + + + + + ); };