Skip to content

Commit

Permalink
Wizard: Fix "form in form" warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
regexowl committed Jan 2, 2025
1 parent 10674eb commit b863b86
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -38,7 +38,7 @@ const UserInfo = () => {
};

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

Expand Down

0 comments on commit b863b86

Please sign in to comment.