Wizard: Fix "form in form" warning

This resolves `Warning: validateDOMNesting(...): <form> cannot appear as a descendant of <form>.` warning in test output. There were two `<Form>` components nested in each other.
This commit is contained in:
regexowl 2025-01-02 09:55:22 +01:00 committed by Klara Simickova
parent f4ac576ab8
commit 5f9f30d97b

View file

@ -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 (
<Form>
<>
<FormGroup isRequired label="Username">
<HookValidatedInput
ariaLabel="blueprint user name"
@ -59,7 +59,7 @@ const UserInfo = () => {
fieldName="userPassword"
/>
</FormGroup>
</Form>
</>
);
};