feat(recipes): add CreateRecipeClient component for quick recipe import

refactor(recipes): integrate Navigation component into various recipe pages
This commit is contained in:
Nils-Johan Gynther
2026-04-17 20:37:48 +02:00
parent 28e938e66e
commit 68b29f6d8e
8 changed files with 241 additions and 230 deletions
@@ -5,7 +5,6 @@ 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';
import { UNIT_OPTIONS } from '../../../lib/units';
type ProductSuggestion = {
@@ -214,7 +213,6 @@ export default function WriteRecipePage() {
return (
<main style={{ padding: '1rem', maxWidth: '1000px', margin: '0 auto' }}>
<Navigation />
<h1 style={{ marginBottom: '0.5rem' }}>Skriv in recept</h1>
<p style={{ color: '#666', marginBottom: '1.5rem' }}>Skriv receptet i Markdown-format nama, ingredienser och instruktioner.</p>