From bf328dd38a28cf44cfa81c7f1dcd95936d2d0301 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 7 Apr 2024 12:04:11 +0200 Subject: view: Add ingredient overview to recipe read page --- model/recipe.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'model') diff --git a/model/recipe.go b/model/recipe.go index 7f8a1d5..7aebad4 100644 --- a/model/recipe.go +++ b/model/recipe.go @@ -260,11 +260,15 @@ func RecipeTestData() []Recipe { {Amount: "4", Unit: "pieces", Type: "egg"}, {Amount: "800", Unit: "g", Type: "special stuff"}, {Amount: "0.5", Unit: "l", Type: "milk"}, - {Amount: "", Unit: "", Type: "salt"}, }, }, {Text: "Heat up pan", Ingredients: []Ingredient{}}, - {Text: "Make pancakes!", Ingredients: []Ingredient{}}, + { + Text: "Make pancakes!", + Ingredients: []Ingredient{ + {Amount: "", Unit: "", Type: "sugar"}, + }, + }, }, }, { -- cgit v1.2.3-70-g09d2