This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Unable to use PropsTable #21
Labels
bug
Something isn't working
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
}),
} |
1 task
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 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: