mirror of
https://github.com/michivonah/nextjs.git
synced 2025-12-22 22:16:28 +01:00
implement form actions for invoices + docs
This commit is contained in:
parent
364f73b06a
commit
39005d46a5
7 changed files with 240 additions and 20 deletions
19
dashboard-app-course/app/dashboard/invoices/create/page.tsx
Normal file
19
dashboard-app-course/app/dashboard/invoices/create/page.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import Form from '@/app/ui/invoices/create-form';
|
||||
import Breadcrumbs from '@/app/ui/invoices/breadcrumbs';
|
||||
import { fetchCustomers } from '@/app/lib/data';
|
||||
|
||||
export default async function Page(){
|
||||
const customers = await fetchCustomers();
|
||||
|
||||
return (
|
||||
<main>
|
||||
<Breadcrumbs
|
||||
breadcrumbs={[
|
||||
{ label: 'Invoices', href: '/dashboard/invoices'},
|
||||
{ label: 'Create Invoice', href: '/dashboard/invoices/create', active: true, },
|
||||
]}
|
||||
/>
|
||||
<Form customers={customers} />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue