Chapter 12 - Implement creating an invoice

This commit is contained in:
2024-01-03 09:32:35 +01:00
parent 86036bdf1f
commit 3e0842aef2
3 changed files with 61 additions and 1 deletions

View File

@@ -7,10 +7,11 @@ import {
UserCircleIcon,
} from '@heroicons/react/24/outline';
import { Button } from '@/app/ui/button';
import {createInvoice} from "@/app/lib/actions";
export default function Form({ customers }: { customers: CustomerField[] }) {
return (
<form>
<form action={createInvoice}>
<div className="rounded-md bg-gray-50 p-4 md:p-6">
{/* Customer Name */}
<div className="mb-4">