bytemakers/Noteslify

Refactoring toaster (Improper implementation of react-toastify)

RakibRahman opened this issue · 4 comments

What would you like to share?

Currently, the toaster component is implemented improperly. as 'react-toastify' is used to show toast messages, we only need to place/import <ToastContainer/> component only on the main or root component such as App.js

But <ToastContainer/> is imported manually in every component that uses toast functionality, which is unnecessary and repetitive. For example, check the Notes.js and Account.js component.

Additional information

No response

Hey @RakibRahman, Thanks for contributing and Congrats on opening Issue 🎉

We will try to review as soon as possible and a maintainer will get back to you soon!

Definitely! Do you want me to assign it to you as well?