Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react-components): update prop-type for invalidText, warnText #7433

Conversation

epodgaetskiy
Copy link
Contributor

@epodgaetskiy epodgaetskiy commented Dec 10, 2020

This PR makes to change prop-type for invalidText, warnText of TextArea, ComboBox, DatePickerInput, Dropdown, ListBox, FilterableMultiSelect, MultiSelect, NumberInput, Select, TimePicker to support internationalization.
The problem at example

Changelog

Changed

  • replacement prop-types from string to node for invalidText, warnText of TextArea, ComboBox, DatePickerInput, Dropdown, ListBox, FilterableMultiSelect, MultiSelect, NumberInput, Select, TimePicker

Testing / Reviewing

  • Pull PR
  • Look fix at netlify storybook for TextArea, ComboBox, DatePickerInput, Dropdown, ListBox, FilterableMultiSelect, MultiSelect, NumberInput, Select, TimePicker

@epodgaetskiy epodgaetskiy changed the title fix(react-components): update type for invalidText, warnText fix(react-components): update prop-type for invalidText, warnText Dec 10, 2020
@netlify
Copy link

netlify bot commented Dec 10, 2020

✔️ Deploy preview for carbon-elements ready!

🔨 Explore the source changes: afacd61

🔍 Inspect the deploy logs: https://app.netlify.com/sites/carbon-elements/deploys/5fd3b669417772000785417e

😎 Browse the preview: https://deploy-preview-7433--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Dec 10, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit afacd61

https://deploy-preview-7433--carbon-components-react.netlify.app

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, seems like this is the only way to avoid prop type warnings with react-intl

Copy link
Member

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, thanks for taking the time to contribute! 👍 ✅

@kodiakhq kodiakhq bot merged commit bfab4c3 into carbon-design-system:master Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants