-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unable to use PropsTable #21
Comments
Hey @louis-pvs I'm having the same problem. I belive that problem is |
I didn't try |
Similar issue with propTypes = {
date: PropTypes.instanceOf(Date),
} Should I open another issue for this? |
@albinekb the problem is similar, so i believe we can keep it here. these also have the same problem: propTypes = {
optionalMessage: PropTypes.instanceOf(Message),
optionalEnum: PropTypes.oneOf(['News', 'Photos']),
optionalUnion: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
PropTypes.instanceOf(Message)
]),
optionalArrayOf: PropTypes.arrayOf(PropTypes.number),
optionalObjectOf: PropTypes.objectOf(PropTypes.number),
optionalObjectWithShape: PropTypes.shape({
color: PropTypes.string,
fontSize: PropTypes.number
}),
} |
I started work on that bug. |
@renatorib I made my own, if you want to have a look: https://gist.github.com/albinekb/f59feb84273279d1d45f603aee8eb496 |
Looks great @albinekb |
Bug Report
getValue
this function in<PropsTable>
causing errorDescribe the bug
Once include
PropsTable
component in my mdx file it throw errorTo Reproduce
PropsTable
as describeExpected behavior
To see the
<PropsTable>
with correct props defined in../lib/Button/index.js
Enviroment
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: