feat(recipes): add CreateRecipeClient component for quick recipe import
refactor(recipes): integrate Navigation component into various recipe pages
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
import Navigation from '../../Navigation';
|
||||
import WriteRecipePage from './WriteRecipePage';
|
||||
|
||||
export default function Page() {
|
||||
return <WriteRecipePage />;
|
||||
return (
|
||||
<>
|
||||
<Navigation />
|
||||
<WriteRecipePage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user