diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 6411ad1..0870fdf 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -1,4 +1,4 @@
-import { BrowserRouter, Routes, Route, Link, useLocation } from 'react-router-dom'
+import { BrowserRouter, Routes, Route, Link, useLocation, Navigate } from 'react-router-dom'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { ErrorBoundary } from './components/ErrorBoundary'
import Dashboard from './pages/Dashboard'
@@ -8,6 +8,7 @@ import Recipes from './pages/Recipes'
import Recommended from './pages/Recommended'
import RecipeDetail from './pages/RecipeDetail'
import ShoppingList from './pages/ShoppingList'
+import NotFound from './pages/NotFound'
const queryClient = new QueryClient()
@@ -50,9 +51,11 @@ function App() {
{description}
{action && ( - + action.to ? ( + + + + ) : ( + + ) )} ); diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index d336334..9dd15c9 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -3,7 +3,7 @@ import { useState } from 'react' import { Link } from 'react-router-dom' import { CookingPot, CalendarDays, ShoppingCart, ChevronRight, Sparkles, Loader2, - GripVertical + GripVertical, X } from 'lucide-react' import toast from 'react-hot-toast' import { @@ -31,12 +31,13 @@ const MEAL_TYPES = ['breakfast', 'lunch', 'dinner'] as const /* ------------------------------------------------------------------ */ /* MealCard (draggable) */ /* ------------------------------------------------------------------ */ -function MealCard({ item, dragHandleProps, isDragging, onApprove, onDeny }: { +function MealCard({ item, dragHandleProps, isDragging, onApprove: _onApprove, onDeny: _onDeny, onDelete }: { item: MealPlanItem dragHandleProps?: DraggableProvidedDragHandleProps | null isDragging?: boolean onApprove?: (itemId: string) => void onDeny?: (itemId: string) => void + onDelete?: (itemId: string) => void }) { const totalTime = item.recipe?.total_time_minutes ?? (item.recipe?.prep_time_minutes || 0) + (item.recipe?.cook_time_minutes || 0) @@ -48,13 +49,18 @@ function MealCard({ item, dragHandleProps, isDragging, onApprove, onDeny }: { 'neutral' return ( -