feat: Add expandable section for creating products with integrated product form

This commit is contained in:
Nils-Johan Gynther
2026-04-12 08:29:28 +02:00
parent f84ee39197
commit ea307e6a6c
6 changed files with 110 additions and 10 deletions
-2
View File
@@ -1,5 +1,4 @@
import InventoryForm from './InventoryForm';
import ProductForm from './ProductForm';
import Link from 'next/link';
import { fetchJson } from '../../lib/api';
import type { InventoryItem, Product } from '../../features/inventory/types';
@@ -109,7 +108,6 @@ export default async function InventoryPage({ searchParams }: InventoryPageProps
<Navigation />
<h1 style={{ marginBottom: '1.5rem' }}>Varor hemma</h1>
<ProductForm />
<InventoryForm products={products} />
<section style={{ marginBottom: '1.5rem' }}>