From 26cab10c1447b7f62b00091c45775c152676e0ab Mon Sep 17 00:00:00 2001 From: june Date: Wed, 13 Aug 2025 23:55:11 +1200 Subject: [PATCH] [PIE-22] Add checklist for ingredients (!10) Each row in the table can be clicked/tapped to be crossed off to complete Co-authored-by: june Co-committed-by: june --- .../Detail/IngredientTableView.astro | 32 ++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/src/components/Detail/IngredientTableView.astro b/src/components/Detail/IngredientTableView.astro index 5ee0c05..0f2b8c8 100644 --- a/src/components/Detail/IngredientTableView.astro +++ b/src/components/Detail/IngredientTableView.astro @@ -19,7 +19,7 @@ const tableView = true )} {tableView && ( - +
@@ -29,9 +29,9 @@ const tableView = true { - ingredients.map(ing => ( + ingredients.map((ing, index) => ( <> - + @@ -41,4 +41,28 @@ const tableView = true }
Quantity
{ing.quantity} {ing.unit} {ing.name}
-)} \ No newline at end of file +)} + + + + \ No newline at end of file