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-VX-Responsive-ScaleSVG-PropTypes #408

Merged

Conversation

mmarkelov
Copy link

🐛 Bug Fix

I got warning with ScaleSVG component:

import { ScaleSVG } from "@vx/responsive";
...
      <ScaleSVG width={400} height={200}>
        <LineRadial width={500} height={200} />
      </ScaleSVG>
...

Edit 98yx2qvryp

Warning: Failed prop type: Invalid prop `children` of type `object` supplied to `n`, expected `function`.

So I suppose it should be PropTypes.any for ScaleSVG component

@hshoff hshoff added this to the v0.0.184 milestone Jan 9, 2019
@hshoff hshoff added the 🐛 bug label Jan 9, 2019
Copy link
Member

@hshoff hshoff left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks for the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants