paradigmxyz / rivet

Developer Wallet & DevTools for Anvil
MIT License
833 stars 71 forks source link

feat: add toaster & custom toast components #68

Closed b4s36t4 closed 1 year ago

b4s36t4 commented 1 year ago

58

Introducing react-hot-toast package to the repo helping us show indicator wherever needed.

Ex: #59

Screenshots

Error

Screenshot 2023-09-16 at 8 35 56 PM

Success

Screenshot 2023-09-16 at 8 35 48 PM

Loading

Screenshot 2023-09-16 at 8 35 20 PM

All of the demos share same message, so please ignore the message 🥇

b4s36t4 commented 1 year ago

Maybe code is too duplicated or so, we can reduce but for readability and understanding purposes I wrote things in different files/components.

jxom commented 1 year ago

Thanks for the PR! Was testing out react-hot-toast and ended up migrating to sonner. I feel like the collapsed stacking on sonner is a lot less intrusive than hot toast! Either way, you're contribution still means a lot!