Load and save recipes from backend
This commit is contained in:
parent
38a5707622
commit
568606213d
5 changed files with 102 additions and 16 deletions
|
|
@ -5,6 +5,7 @@ import RecipeEditor from "./RecipeEditor"
|
|||
import { fetchRecipe, createRecipe, updateRecipe } from "../../api/recipePoint"
|
||||
|
||||
export default function RecipeEditPage() {
|
||||
// Extract recipe ID from route params
|
||||
const { id } = useParams<{ id: string }>()
|
||||
const [recipe, setRecipe] = useState<Recipe | null>(null)
|
||||
const navigate = useNavigate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue