Closed EmmaDir closed 2 months ago
The Acceptance criteria tak about a dialoge that open ton confirm the delete process, please add this to the tasks as well. The dialog window is also called a "Modal" you can import a libary ffor that or write one yourself, i recommend writing one but don't forget to make it accessible :)
Value proposition
As a user I want to be able to delete workouts that are no longer relevant, so that I can maintain a clean and organised workouts list, ensuring it’s always up to date.
Description
Acceptance criteria
Tasks
pages/workouts/index.js
, write a function handleDeleteWorkout, which accepts an id as parameter. The function should filter the workouts state and keep all objects except the one with the given id