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

Issue in container #1120

Open
StarKnightt opened this issue May 29, 2024 · 2 comments
Open

Issue in container #1120

StarKnightt opened this issue May 29, 2024 · 2 comments

Comments

@StarKnightt
Copy link

StarKnightt commented May 29, 2024

Do you want to request a feature or report a bug?

I want to report a bug

What is the current behavior?

It is throwing errors.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:

So today I added toastify in my project and it was throwing error in "transition: "Bounce,

image

What is the expected behavior?
It shouldn't throw any error.

I solved this issue and it is just a minimal typo issue.

and the solution should be :
image
transition = Bounce,

I hope the maintainer will fix this minimal issue. I didn't find the file actually to fix it, so I'm sending it as a issue.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

@asifgenius
Copy link

Hey @StarKnightt, I have looked at the issue, I think you can try like this -

import { Bounce } from 'react-toastify';

then -

<ToastContainer
      position="top-right"
      autoClose={5000}
      hideProgressBar={false}
      newestOnTop={false} 
      closeOnClick
      rtl={false}
      pauseOnFocusLoss
      draggable
      pauseOnHover
      theme="light"
      transition= {Bounce}
      />

@StarKnightt
Copy link
Author

Got it, thanks

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