suprsend / suprsend-react-inbox

SuprSend SDK for integrating inbox functionality in React applications
https://suprsend.com
MIT License
13 stars 0 forks source link

Styled(ToastContainer): Support for defaultProps will be removed from function components #52

Open fire015 opened 3 months ago

fire015 commented 3 months ago

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 https://github.com/fkhadra/react-toastify/issues/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:

      <SuprSendInbox
        workspaceKey="xxx"
        subscriberId="xxx"
        distinctId="xxx"
        hideAvatar={true}
        toastProps={{
          position: "top-center",
        }}
      />
sivaram000 commented 3 months ago

@fire015 Noted. Will update in the next release.

fire015 commented 1 month ago

Hey @sivaram000 when will this be released? The errors are super annoying! Thanks

sivaram000 commented 1 month ago

Hi @fire015 Will be picking this up next. Most probably should be resolved by mid of August. Will let you know exact timeline after picking up.