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(modal): update oneOf prop type to use array #4716

Merged
merged 2 commits into from
Nov 19, 2019
Merged

Conversation

joshblack
Copy link
Contributor

Noticed that oneOf for Modal in a recent change wasn't using the array syntax. This causes the following error to occur:

Warning: Invalid arguments supplied to oneOf, expected an array, got 3 arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).

Changelog

New

Changed

  • Update oneOf to oneOf with an array argument

Removed

@joshblack joshblack requested a review from a team as a code owner November 18, 2019 23:13
@ghost ghost requested review from asudoh and dakahn November 18, 2019 23:14
@netlify
Copy link

netlify bot commented Nov 18, 2019

Deploy preview for the-carbon-components ready!

Built with commit d840fce

https://deploy-preview-4716--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Nov 18, 2019

Deploy preview for carbon-components-react ready!

Built with commit d840fce

https://deploy-preview-4716--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Nov 18, 2019

Deploy preview for carbon-elements ready!

Built with commit d840fce

https://deploy-preview-4716--carbon-elements.netlify.com

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @joshblack!

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