-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
oneOf(Object.keys(SIZES)) is propTypes #986
Comments
As soon as someone sends a pull request with an update ;-) |
@romanlex , could you check, please? |
it's doesn't work( with const COLORS = Object.keys(colors) May be it is reactjs/react-docgen#211 merged to master and doesn't merged to dev branch with 3.x version |
@jmetev1 yeah that works as long as colors is defined inside the same file. If you import colors from external file (which is a very common pattern) doesn't work |
Hello
I see what supporting
Object.keys
inreact-docgen
is mergedreactjs/react-docgen#211
When
react-styleguidist
add this support?The text was updated successfully, but these errors were encountered: