add calculation of ingredients based on servings

This commit is contained in:
Anika Raemer 2025-09-07 16:28:46 +02:00
parent fee47da55d
commit e467ca7e92
5 changed files with 63 additions and 14 deletions

View file

@ -20,6 +20,7 @@ export default function RecipeEditor({ recipe, onSave, onCancel }: RecipeEditorP
setDraft({ ...draft, ingredients })
}
if (!recipe) return <div>Oops, there's no recipe in RecipeEditor...</div>
// @todo add handling of images
return (
<div className="p-4 gap-10">
<h2 className="content-title">