react-toastify icon indicating copy to clipboard operation
react-toastify copied to clipboard

Code Error in Toast container in transition property

Open kushagra-2o22 opened this issue 1 year ago • 1 comments

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

kushagra-2o22 avatar Jul 18 '24 03:07 kushagra-2o22

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

cjboco avatar Jul 19 '24 01:07 cjboco