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
Add ability to pass false or null into props.buttons
#16
Comments
I think for the buttons rather than passing in null or false, simply remove the prop from the component itself, if the prop doesn't exist default to no buttons. |
@AlexCatch |
I think In general, definitely agree. Feel free to PR. |
@DivineOmega Thoughts on using Util.isEmpty([ 'a' ]) // false
Util.isEmpty({ a: 'a' }) // false
Util.isEmpty('a') // false
Util.isEmpty(0) // false
Util.isEmpty([]) // true
Util.isEmpty({}) // true
Util.isEmpty('') // true
Util.isEmpty(null) // true
Util.isEmpty(undefined) // true Edit: I'm going to be tidying up and refactoring util soon too |
Original thread #15
The text was updated successfully, but these errors were encountered: