itispaleocapa / paleobooks

Repository per il progetto paleobooks (app libri usati esperia)
GNU General Public License v3.0
2 stars 0 forks source link

Snackbar disappears too early when deleting a demand/supply #2

Open cristianlivella opened 4 years ago

cristianlivella commented 4 years ago

In the pages demands and supplies, when the user deletes a demand or a supply, the snackbar (the information message on the bottom of the screen) disappears too early, because it is in the components CreateSupplyDialog.js and CreateDemandDialog.js, that will be destroyed when the list of the demands/supplies is refreshed. I think the best solution is to move the snackbar in a global position, for example in PageContainer.js, and then find a nice way to use it in all the components that need to show a message (global state? redux?)