The LocalStorageProvider was created and it provides the state and function to manage the state. Use these functionalities in places where menuItemGroups are added, edited and deleted by the user.
[x] "add" and "edit" on the menu item page
[x] "edit and delete" on the orders page
[x] remember to use the state to render the number of items in the cart. Place it above the cart icon
The
LocalStorageProvider
was created and it provides the state and function to manage the state. Use these functionalities in places wheremenuItemGroups
are added, edited and deleted by the user.