viktorgullmark / exilence-next

Desktop application that helps you summarize your wealth in Path of Exile
649 stars 124 forks source link

Add snackbar for error display #71

Closed viktorgullmark closed 4 years ago

viktorgullmark commented 4 years ago

We should display errors in a clear way for the user, for example by using the snackbar component (https://material-ui.com/components/snackbars/)

This should be based on notifications in the notificationStore with the type "Error". So basically trigger the snackbar to open when the array of notifications is changed.

viktorgullmark commented 4 years ago

We added a basic snackbar using notistack and it's variants. We can improve this later by inputting a custom content template that includes a close icon etc.