Skip to content

Commit

Permalink
deps: bump react-hook-form to 7.X
Browse files Browse the repository at this point in the history
  • Loading branch information
romainseb committed Oct 20, 2023
1 parent 9a0732e commit 07be73b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/design-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"classnames": "^2.3.1",
"color-contrast-checker": "^2.1.0",
"figma-js": "^1.16.0",
"react-hook-form": "^6.15.8",
"react-hook-form": "^7.47.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"use-overflow": "^1.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"react-autowhatever": "10.2.0",
"@talend/react-bootstrap": "^1.35.2",
"react-ace": "10.1.0",
"react-hook-form": "^6.15.8",
"react-hook-form": "^7.47.0",
"react-jsonschema-form": "0.51.0",
"tv4": "^1.3.0"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/stepper/src/stories/Stepper.components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const FormComponentStep1 = () => {
defaultValues: { ...stepsData[0] },
});

const { field, meta } = useController({
const { field, fieldState } = useController({
control: rhf.control,
name: 'randomInput',
rules: {
Expand Down Expand Up @@ -63,7 +63,7 @@ export const FormComponentStep1 = () => {
}}
/>

{meta.invalid && (
{fieldState.invalid && (
<InlineMessageDestructive description={'This field is required'} withBackground />
)}
<Form.Input
Expand Down Expand Up @@ -93,7 +93,7 @@ export const FormComponentStep2 = () => {
defaultValues: { ...stepsData[1] },
});

const { field, meta } = useController({
const { field, fieldState } = useController({
control: rhf.control,
name: 'randomInput',
rules: {
Expand Down Expand Up @@ -124,7 +124,7 @@ export const FormComponentStep2 = () => {
}}
/>

{meta.invalid && (
{fieldState.invalid && (
<InlineMessageDestructive description={'This field is required'} withBackground />
)}
<Form.Input
Expand Down Expand Up @@ -153,7 +153,7 @@ export const FormComponentStep3 = () => {
defaultValues: { ...stepsData[2] },
});

const { field, meta } = useController({
const { field, fieldState } = useController({
control: rhf.control,
name: 'randomInput',
rules: {
Expand All @@ -171,7 +171,7 @@ export const FormComponentStep3 = () => {
<FormProvider {...rhf}>
<Form>
<Form.Fieldset>
{meta.invalid && (
{fieldState.invalid && (
<InlineMessageDestructive description={'This field is required'} withBackground />
)}
<Form.Input
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-one/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@talend/icons": "^6.60.1",
"@talend/react-components": "^11.0.0",
"@talend/react-dataviz": "^3.0.1",
"react-hook-form": "^6.15.8"
"react-hook-form": "^7.47.0"
},
"devDependencies": {
"@babel/preset-env": "^7.22.9",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15565,10 +15565,10 @@ react-helmet@^6.1.0:
react-fast-compare "^3.1.1"
react-side-effect "^2.1.0"

react-hook-form@^6.15.8:
version "6.15.8"
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-6.15.8.tgz#725c139d308c431c4611e4b9d85a49f01cfc0e7a"
integrity sha512-prq82ofMbnRyj5wqDe8hsTRcdR25jQ+B8KtCS7BLCzjFHAwNuCjRwzPuP4eYLsEBjEIeYd6try+pdLdw0kPkpg==
react-hook-form@^7.47.0:
version "7.47.0"
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.47.0.tgz#a42f07266bd297ddf1f914f08f4b5f9783262f31"
integrity sha512-F/TroLjTICipmHeFlMrLtNLceO2xr1jU3CyiNla5zdwsGUGu2UOxxR4UyJgLlhMwLW/Wzp4cpJ7CPfgJIeKdSg==

react-i18next@^11.18.6:
version "11.18.6"
Expand Down

0 comments on commit 07be73b

Please sign in to comment.