diff --git a/docs/3.x.x/en/plugin-development/ui-components.md b/docs/3.x.x/en/plugin-development/ui-components.md index 8ef3baed59..4c621c5005 100644 --- a/docs/3.x.x/en/plugin-development/ui-components.md +++ b/docs/3.x.x/en/plugin-development/ui-components.md @@ -534,10 +534,8 @@ Component integrates Label, InputText, InputDescription and InputErrors. render() { const { didCheckErrors, errors, foo } = this.state; const inputDescription = { - message: { - id: 'my-plugin.inputFoo.description', - params: { bar: 'Something' } - } + id: 'my-plugin.inputFoo.description', + params: { bar: 'Something' }, }; // This can also works (it's the same behavior for the label) @@ -555,10 +553,10 @@ Component integrates Label, InputText, InputDescription and InputErrors. inputDescription={inputDescription} name="foo" onChange={this.handleChange} - label={{ message: { + label={{ id: 'my-plugin.inputFoo.label', params: { name: Click me } - }}} + }} value={foo} validations={{ required: true }} /> diff --git a/packages/strapi-helper-plugin/lib/src/components/InputNumberWithErrors/index.js b/packages/strapi-helper-plugin/lib/src/components/InputNumberWithErrors/index.js index af9e626a04..1d142517f6 100644 --- a/packages/strapi-helper-plugin/lib/src/components/InputNumberWithErrors/index.js +++ b/packages/strapi-helper-plugin/lib/src/components/InputNumberWithErrors/index.js @@ -83,7 +83,7 @@ class InputNumberWithErrors extends React.Component { // eslint-disable-line rea