Closed BPierrick closed 3 years ago
@BPierrick Awesome !
I just have a doubt concerning the scenario where the snackbar is red - I understand what was your intention (red = refusal) but here the user is the administrator. And generally speaking in UI, a red thing is used for dangerous actions (= delete for example) or errors.
I feel it would be safer to just show a green snackbar everytime with for example "Votre réponse a bien été prise en compte". Bonus : we can keep the red snackbar when the API response is an error, with something like "Une erreur est survenue. Votre réponse n'a pas pu être prise en compte."
I agree with @MiskoG, the red snackbar should only be used for api errors
Exactly 👍
Fixes
Fixes #80 by @MiskoG
Description
Snackbar
componentsuccess
&error
Screenshots