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

Add links on message #176

Closed
aranchafoz opened this issue Feb 5, 2018 · 2 comments
Closed

Add links on message #176

aranchafoz opened this issue Feb 5, 2018 · 2 comments
Labels

Comments

@aranchafoz
Copy link

Hi,
I'm trying to add some links, that redirect to another url of my application, inside toast message.
For that I use component prop of toastOptions:

captura de pantalla 2018-02-05 a las 15 53 58

For the development of my app I'm using React-Router, React-Bootstrap and React-Router-Bootstrap (<LinkContainer>). So I need component <LinkContainer> for go to a specific route in my app, but when I place this component inside a toast message and click on the rendered link, I found this error:

captura de pantalla 2018-02-05 a las 15 59 49
captura de pantalla 2018-02-05 a las 16 00 21

Actually, there's some logic for that error because <ReduxToastr> is not a children of <Router>. But I don't know how to solve this.

There is any way of integrate react-router with react-redux-toastr for add links inside the message???

@diegoddox
Copy link
Owner

Hi @aranchafoz, sorry but at the moment is not possible to pass props.

@atlanteh
Copy link

Actually your problem is that your toaster is placed outside your router. If you place it inside your router it should work.

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

No branches or pull requests

3 participants