-
Notifications
You must be signed in to change notification settings - Fork 247
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 new onAlert prop #205
Add new onAlert prop #205
Conversation
Found the entry to contributing a bit painful. Couple thoughts:
|
Hi @mattcorner, Thanks for your contribution and for your feedback, I'll try to answer your points below.
This is something I'd like to introduce as well, I was waiting to have a kind of "stable" code situation (with no open PRs) before doing a complete
This is another good point, the PR template was taken from a pre-made one but I'd also like to add some tests soon enough (no timeframe on this unfortunately).
We introduced
On a side note about this, your second commit should be better classified as "Adding or updating types (Flow, TypeScript)" so the correct emoji would be 🏷️ instead of ✨ (used for a new feature).
Files under the I hope this helps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@@ -10,6 +10,7 @@ import { DropzoneAreaBase } from 'material-ui-dropzone'; | |||
<DropzoneAreaBase | |||
onAdd={(fileObjs) => console.log('Added Files:', fileObjs)} | |||
onDelete={(fileObj) => console.log('Removed File:', fileObj)} | |||
onAlert={(message, variant) => console.log(`${variant}: ${message}`)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I would argue this is not basic usage, however until we have something like story book this is probably the best way to test it out. Perhaps when we have storybook we can have one example with all the customisation in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, simply lack of a better place.
Description
Added onAlert prop which is (message, variant) => {}
Implements #200
Type of change
How Has This Been Tested
Checklist