more detail on index; move delete to recipe page

This commit is contained in:
fred 2025-08-06 16:18:06 -07:00
parent 27ac9cd92d
commit 91439cbcfa
9 changed files with 95 additions and 75 deletions

View file

@ -5,7 +5,6 @@ import AddBulkIngredients from "../components/AddBulkIngredients.tsx"
import AddBulkSteps from "../components/AddBulkSteps.tsx"
import StarRating from "../components/StarRating.tsx"
import DemoModal from '../components/DemoModal.tsx'
// import { type Step } from "../types/Recipe";
interface Step {
step_number: number;
@ -14,7 +13,6 @@ interface Step {
function AddRecipe() {
const [newRecipeId, setNewRecipeId] = useState<number | null>(null);
const navigate = useNavigate();
const [ingredients, setIngredients] = useState<string[]>([]);
const [steps, setSteps] = useState<Step[]>([]);
const [showBulkForm, setShowBulkForm] = useState(true);
@ -25,6 +23,7 @@ function AddRecipe() {
const [prepMinutes, setPrepMinutes] = useState(5);
const [cookMinutes, setCookMinutes] = useState(5);
const [showDemoModal, setShowDemoModal] = useState(false);
const navigate = useNavigate();
const addRecipeForm = async (event: React.FormEvent) => {
event.preventDefault();