AlecM33/Werewolf

Allow toasts to be closed manually

Closed this issue · 1 comments

Currently the toast element doesn't have a way to dismiss the message on command. It will always disappear automatically after a provided duration.

image

This can of course be annoying if the toast is blocking something the user wants to see - allow the user to click a small close button on the toast to dismiss it.

The toast module is found in client/src/modules/Toast.js

Toasts are positioned in such a way and displayed for a short enough time that this ask is not necessary.