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:
parent
f4ac576ab8
commit
5f9f30d97b
1 changed files with 3 additions and 3 deletions
|
|
@ -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>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue