so that I can ensure the app's ingredient list remains accurate and curated according to my culinary experiments and findings.
Description
Acceptance Criteria
The ingredient details page features a prominently placed "Delete" button.
Clicking the "Delete" button prompts a confirmation dialog. This dialog serves as a precaution against accidental deletions, requesting the user to confirm their intention.
The dialog provides options for both confirming the deletion and canceling the action.
The cancellation option enables users to abort the deletion process if chosen in error or if they change their mind.
Upon confirming the deletion, the ingredient is promptly removed from the ingredient list.
Tasks
Create a new feature branch delete-ingredient.
Add a "Delete" button to the ingredient details page.
Implement a function to handle the deletion of a ingredient.
Introduce a state to handle the confirmation message.
Create a function confirmDelete to confirm the deletion.
Create a function cancelDelete to cancel the deletion process.
Delete Ingredient
Value Proposition
As a culinary enthusiast,
I want to delete an ingredient from the app,
so that I can ensure the app's ingredient list remains accurate and curated according to my culinary experiments and findings.
Description
Acceptance Criteria
Tasks