Skip to content
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

Enable passing children prop via enqueueSnackbar #23

Conversation

nijk
Copy link

@nijk nijk commented Nov 7, 2018

Fixes #22 by rendering the snack.children if it exists.

@iamhosseindhv iamhosseindhv changed the title Fix issue with enqueueSnackbar options so that children can override the SnackbarContent component Enable passing children prop via enqueueSnackbar Nov 7, 2018
@iamhosseindhv
Copy link
Owner

Thanks for your contribution @nijk. This will be merged in the next version of notistack.

@nijk
Copy link
Author

nijk commented Nov 7, 2018

My pleasure, thanks for this lib - it's very useful 👍

@nijk
Copy link
Author

nijk commented Nov 19, 2018

@iamhosseindhv Any chance you can include this on v0.3.9?

@iamhosseindhv
Copy link
Owner

@nijk This PR and #21 will be in the next version. I need to update changelog to reflect this.

@nijk
Copy link
Author

nijk commented Nov 19, 2018

Thanks @iamhosseindhv

@iamhosseindhv
Copy link
Owner

@nijk Functionality has been added to master branch, and will be included in the next release. Thanks for reporting this and the PR. ❤️

@nthgol
Copy link

nthgol commented Jan 23, 2019

amazing PR - please add to documentation as it took me a bit of time to find this.
In particular, putting an example child of <SnackbarMessage> would be helpful to show a good template starting point

@iamhosseindhv
Copy link
Owner

Good idea @nthgol. Would you open an issue for this

@nthgol
Copy link

nthgol commented Jan 27, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants