checkpoint

This commit is contained in:
fred 2025-07-09 14:43:45 -07:00
parent 925135d08c
commit 22e2dab830
7 changed files with 155 additions and 2 deletions

View file

@ -1,6 +1,8 @@
import React, { useState } from 'react';
import { addRecipe } from "../services/frontendApi.js";
import { useNavigate } from "react-router-dom";
import AddIngredientsForm from "../components/AddIngredientsForm.tsx"
import AddBulkIngredients from "../components/AddBulkIngredients.tsx"
function AddRecipe() {
const [newRecipeId, setNewRecipeId] = useState<number | null>(null);
@ -47,6 +49,10 @@ function AddRecipe() {
submit
</button>
</form>
<div>
<AddIngredientsForm />
<AddBulkIngredients />
</div>
</div>
)
}

View file

@ -46,7 +46,7 @@ function Cookbook() {
) : (
<div className="recipes-grid">
{recipes.map((recipe: Recipe) => (
<CookbookRecipeTile recipe={recipe} key={recipe.id} handleDelete={handleDelete} />
<CookbookRecipeTile recipe={recipe} key={recipe.details.id} handleDelete={handleDelete} />
))}
</div>
)}