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

Code Error in Toast container in transition property #1137

Open
kushagra-2o22 opened this issue Jul 18, 2024 · 1 comment
Open

Code Error in Toast container in transition property #1137

kushagra-2o22 opened this issue Jul 18, 2024 · 1 comment

Comments

@kushagra-2o22
Copy link

Error in Code

Currently on your webpage https://fkhadra.github.io/react-toastify/introduction/ it is showing transition: Bounce, instead of showing transition = "Bounce".

It should show transition= "Bounce"

I am using Chrome with latest React version.

I am attaching a screenshot as a proof .
Screenshot 2024-07-18 at 9 15 21 AM

So, please correct it .

i also show u the code which show error in my project.
Screenshot 2024-07-18 at 9 24 52 AM

@cjboco
Copy link

cjboco commented Jul 19, 2024

Pretty sure it needs to be a ToastTransition | undefined Type, so it should be:

transition={Bounce}

and be sure to import the transition:

import { ToastContainer, Bounce } from 'react-toastify';

** This is also mentioned in #1091

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