This commit is contained in:
2026-05-12 17:35:38 +03:00
parent d9ffcb4b92
commit e3f3e62482
51 changed files with 882 additions and 3413 deletions
+4 -4
View File
@@ -23,7 +23,7 @@ export type Invoice = {
date: string;
// In TypeScript, this is called a string union type.
// It means that the "status" property can only be one of the two strings: 'pending' or 'paid'.
status: 'pending' | 'paid';
status: "pending" | "paid";
};
export type Revenue = {
@@ -40,7 +40,7 @@ export type LatestInvoice = {
};
// The database returns a number for amount, but we later format it to a string with the formatCurrency function
export type LatestInvoiceRaw = Omit<LatestInvoice, 'amount'> & {
export type LatestInvoiceRaw = Omit<LatestInvoice, "amount"> & {
amount: number;
};
@@ -52,7 +52,7 @@ export type InvoicesTable = {
image_url: string;
date: string;
amount: number;
status: 'pending' | 'paid';
status: "pending" | "paid";
};
export type CustomersTable = {
@@ -84,5 +84,5 @@ export type InvoiceForm = {
id: string;
customer_id: string;
amount: number;
status: 'pending' | 'paid';
status: "pending" | "paid";
};