You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever the toast appears (or upon initial compilation) you get the error when passing in toastProps:
Warning: Styled(ToastContainer): Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
According to fkhadra/react-toastify#970 this was fixed in v10 so perhaps you need to update the dependency?
Whenever the toast appears (or upon initial compilation) you get the error when passing in
toastProps
:Warning: Styled(ToastContainer): Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
According to fkhadra/react-toastify#970 this was fixed in v10 so perhaps you need to update the dependency?
Using Next.js v14.2.3 and React 18.
Here is my code:
The text was updated successfully, but these errors were encountered: