As a user
I want to get confirm notifications
In order to get feedback for my actions
Description
Acceptance criteria
[x] after creating, editing or deleting an event a confirm message with the corresponding action will be shown on the top of
the screen
[x] The confirmation message should automatically disappear after 2 seconds to avoid obstructing the user's view.
Tasks
[x] install the library react-hot-toast
[x] in _app.js import Toaster from react-hot-toast
[x] place the imported Toaster component inside the SWRConfig next to GlobalStyles
[x] inside all the handler functions for create, edit and delete execute the function toast.success(βNew event is created.β) below the the mutate() function
Value proposition
As a
user
I want toget confirm notifications
In order toget feedback for my actions
Description
Acceptance criteria
Tasks