Toast bug
This PR solves the issue that Toasts doesn't hides itself after a preset time.
It seems there is a bug in the react-hot-toast component (https://github.com/timolins/react-hot-toast/issues/192) that after toast.remove(t.id), other toasts never disappear. I've changed toast.remove to toast.dismiss to solve this problem.
But with dismiss, custom toasts doesn't close immediately after clicking the X. It has a delay (https://github.com/timolins/react-hot-toast/issues/199). I had to add a enter and exit animation so it doesn't looks like an error.
Toast links doesn't work yet. It will be solved in another PR.
How to Test
After making a Success transaction like Mint Token or create group a success toast must show up. If you close the first one with the X button next ones should disappear alone after 8 seconds.
When clicking the X button the toast should close with an exit animation.
Related #164
Toast bug This PR solves the issue that Toasts doesn't hides itself after a preset time. It seems there is a bug in the react-hot-toast component (https://github.com/timolins/react-hot-toast/issues/192) that after toast.remove(t.id), other toasts never disappear. I've changed toast.remove to toast.dismiss to solve this problem. But with dismiss, custom toasts doesn't close immediately after clicking the X. It has a delay (https://github.com/timolins/react-hot-toast/issues/199). I had to add a enter and exit animation so it doesn't looks like an error.
Toast links doesn't work yet. It will be solved in another PR.
How to Test