Skip to content

Commit

Permalink
implement feedback
Browse files Browse the repository at this point in the history
Co-authored-by: seunexplicit <[email protected]>
  • Loading branch information
gitstart and seunexplicit committed Apr 1, 2023
1 parent d98bf7c commit 591ffa9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/data/base/components/form-control/BasicFormControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import InputUnstyled, { inputUnstyledClasses } from '@mui/base/InputUnstyled';
import { styled } from '@mui/system';
import clsx from 'clsx';

export default function UseFormControl() {
export default function BasicFormControl() {
return (
<FormControlUnstyled defaultValue="" required>
<Label>Name</Label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import InputUnstyled, { inputUnstyledClasses } from '@mui/base/InputUnstyled';
import { styled } from '@mui/system';
import clsx from 'clsx';

export default function UseFormControl() {
export default function BasicFormControl() {
return (
<FormControlUnstyled defaultValue="" required>
<Label>Name</Label>
Expand Down
18 changes: 9 additions & 9 deletions docs/data/base/components/form-control/UseFormControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ import FormControlUnstyled, {
useFormControlUnstyledContext,
} from '@mui/base/FormControlUnstyled';

export default function UseFormControl() {
return (
<FormControlUnstyled defaultValue="" required>
<CustomInput />
<ControlStateDisplay />
</FormControlUnstyled>
);
}

function CustomInput() {
const formControlContext = useFormControlUnstyledContext();

Expand Down Expand Up @@ -40,12 +49,3 @@ function ControlStateDisplay() {
</p>
);
}

export default function UseFormControl() {
return (
<FormControlUnstyled defaultValue="" required>
<CustomInput />
<ControlStateDisplay />
</FormControlUnstyled>
);
}
18 changes: 9 additions & 9 deletions docs/data/base/components/form-control/UseFormControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ import FormControlUnstyled, {
useFormControlUnstyledContext,
} from '@mui/base/FormControlUnstyled';

export default function UseFormControl() {
return (
<FormControlUnstyled defaultValue="" required>
<CustomInput />
<ControlStateDisplay />
</FormControlUnstyled>
);
}

function CustomInput() {
const formControlContext = useFormControlUnstyledContext();

Expand Down Expand Up @@ -40,12 +49,3 @@ function ControlStateDisplay() {
</p>
);
}

export default function UseFormControl() {
return (
<FormControlUnstyled defaultValue="" required>
<CustomInput />
<ControlStateDisplay />
</FormControlUnstyled>
);
}

0 comments on commit 591ffa9

Please sign in to comment.