Admin: Produkter
Här kan du granska och standardisera produktnamn.
diff --git a/frontend/app/inventory/page.tsx b/frontend/app/inventory/page.tsx index 7ee2c490..57170a50 100644 --- a/frontend/app/inventory/page.tsx +++ b/frontend/app/inventory/page.tsx @@ -4,6 +4,7 @@ import Link from 'next/link'; import { fetchJson } from '../../lib/api'; import type { InventoryItem, Product } from '../../features/inventory/types'; import InventoryList from './InventoryList'; +import Navigation from '../Navigation'; function formatDate(value: string | null) { if (!value) return null; @@ -104,7 +105,8 @@ export default async function InventoryPage({ searchParams }: InventoryPageProps ]; return ( -Varor hemma
Recipe App
Redigera recept
{error &&{error}
} diff --git a/frontend/app/recipes/create/CreateRecipePage.tsx b/frontend/app/recipes/create/CreateRecipePage.tsx index 4ee81e35..549e28bb 100644 --- a/frontend/app/recipes/create/CreateRecipePage.tsx +++ b/frontend/app/recipes/create/CreateRecipePage.tsx @@ -5,6 +5,7 @@ import { useRouter } from 'next/navigation'; import { fetchJson } from '../../../lib/api'; import { parseErrorResponse } from '../../../lib/error-handler'; import type { Product } from '../../../features/inventory/types'; +import Navigation from '../../Navigation'; const MARKDOWN_HELP = ` **Fetstil:** **text** eller __text__ @@ -136,6 +137,7 @@ export default function CreateRecipePage() { return (Lägg till nytt recept
{error &&{error}
} diff --git a/frontend/app/recipes/page.tsx b/frontend/app/recipes/page.tsx index 75e79a86..3e4c5d63 100644 --- a/frontend/app/recipes/page.tsx +++ b/frontend/app/recipes/page.tsx @@ -2,12 +2,14 @@ import Link from 'next/link'; import { fetchJson } from '../../lib/api'; import type { Recipe } from '../../features/inventory/types'; import RecipePreview from './RecipePreview'; +import Navigation from '../Navigation'; export default async function RecipesPage() { const recipes = await fetchJson