| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
PatternFly-React preview: https://patternfly-react-pr-2863.surge.sh |
Sorry, something went wrong.
|
+1, but snapshots need to be updated |
Sorry, something went wrong.
|
Right, thank you! - Snapshots updated |
Sorry, something went wrong.
There was a problem hiding this comment.
Fixed the nitpick for you, so approved!
Sorry, something went wrong.
| height: null as string, | ||
| footer: null as React.ReactNode | ||
| footer: null as React.ReactNode, | ||
| onClose: () => undefined as any |
There was a problem hiding this comment.
Can we do this instead for consistency?
| onClose: () => undefined as any | |
| onClose: (): any => undefined |
Sorry, something went wrong.
There was a problem hiding this comment.
Right now there's 11 results for ): any => undefined and 22 for ) => undefined as any. Are we preferring the former when updating/writing new code?
Sorry, something went wrong.
There was a problem hiding this comment.
We should fix these consistency issues and decide on which format we would like to use. Could add some tslint rules for things when possible. I would recommend leaving this for now and fixing some of these consistency issues in a separate issue.
Sorry, something went wrong.
| height: null as string, | ||
| footer: null as React.ReactNode | ||
| footer: null as React.ReactNode, | ||
| onClose: () => undefined as any |
There was a problem hiding this comment.
We should fix these consistency issues and decide on which format we would like to use. Could add some tslint rules for things when possible. I would recommend leaving this for now and fixing some of these consistency issues in a separate issue.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What: This adds a default function to onClose so that it no longer crashes the component if left out
Additional issues: fixes #2831
cc @suomiy