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

Message in custom snackbar #198

Closed
oleksiivoloshko opened this issue Nov 20, 2019 · 3 comments
Closed

Message in custom snackbar #198

oleksiivoloshko opened this issue Nov 20, 2019 · 3 comments

Comments

@oleksiivoloshko
Copy link

oleksiivoloshko commented Nov 20, 2019

Is there a reason, why message is not accessible in custom snackbar?

@iamhosseindhv
Copy link
Owner

I'm not sure if I follow your question

@oleksiivoloshko
Copy link
Author

oleksiivoloshko commented Nov 21, 2019

Sorry, i`ll try to explain.
Is there a way to receive message, in custom snackbar?

Now it can receive only key:
<SnackbarProvider content={ (key) => ( <MyCustomChildren id={key} /> )} />
and i need smth like this:
<SnackbarProvider content={ (key, mesage) => ( <MyCustomChildren id={key} message={message} /> )} />
Message from enqueueSnackbar(message)

@iamhosseindhv
Copy link
Owner

I see how this can be useful. I'll plan on adding this feature . ❤️

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

No branches or pull requests

2 participants