diff --git a/src/components/Detail/IngredientTableView.astro b/src/components/Detail/IngredientTableView.astro index 1f38027..5ee0c05 100644 --- a/src/components/Detail/IngredientTableView.astro +++ b/src/components/Detail/IngredientTableView.astro @@ -2,41 +2,43 @@ // const { ingredients } = Astro.props const { class: className, ingredients } = Astro.props +const tableView = true --- - + +)} - - - - - - - - - - { - ingredients.map(ing => ( - <> - - - - - - - )) - } - -
QuantityUnitFood
{ing.quantity}{ing.unit}{ing.name}
\ No newline at end of file +{tableView && ( + + + + + + + + + + { + ingredients.map(ing => ( + <> + + + + + + + )) + } + +
QuantityUnitIngredient
{ing.quantity}{ing.unit}{ing.name}
+)} \ No newline at end of file