From 5f9f30d97bf1b7ddb1b11fb3fced254151c2edeb Mon Sep 17 00:00:00 2001 From: regexowl Date: Thu, 2 Jan 2025 09:55:22 +0100 Subject: [PATCH] Wizard: Fix "form in form" warning This resolves `Warning: validateDOMNesting(...):
cannot appear as a descendant of .` warning in test output. There were two `` components nested in each other. --- .../CreateImageWizard/steps/Users/component/UserInfo.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/CreateImageWizard/steps/Users/component/UserInfo.tsx b/src/Components/CreateImageWizard/steps/Users/component/UserInfo.tsx index 1a84cfa6e..38353521a 100644 --- a/src/Components/CreateImageWizard/steps/Users/component/UserInfo.tsx +++ b/src/Components/CreateImageWizard/steps/Users/component/UserInfo.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { Form, FormGroup } from '@patternfly/react-core'; +import { FormGroup } from '@patternfly/react-core'; import { useAppDispatch, useAppSelector } from '../../../../../store/hooks'; import { @@ -38,7 +38,7 @@ const UserInfo = () => { }; return ( - + <> { fieldName="userPassword" /> -
+ ); };