diff --git a/app/invoice/components/InvoiceDisplay.tsx b/app/invoice/components/InvoiceDisplay.tsx
index 7d39e1e..b6ca3ce 100644
--- a/app/invoice/components/InvoiceDisplay.tsx
+++ b/app/invoice/components/InvoiceDisplay.tsx
@@ -6,7 +6,7 @@ interface InvoiceDisplayProps {
const InvoiceDisplay = ({ invoice }: InvoiceDisplayProps) => {
return (
-
+
Invoice
diff --git a/app/invoice/components/InvoiceSummary.tsx b/app/invoice/components/InvoiceSummary.tsx
index 0b9ae10..ad5e596 100644
--- a/app/invoice/components/InvoiceSummary.tsx
+++ b/app/invoice/components/InvoiceSummary.tsx
@@ -13,7 +13,7 @@ const InvoiceSummary = ({ invoice }: InvoiceSummaryProps) => {
return (
Summary
-
+
- Amount
diff --git a/app/lib/toTitleCase.ts b/app/lib/toTitleCase.ts
new file mode 100644
index 0000000..1411411
--- /dev/null
+++ b/app/lib/toTitleCase.ts
@@ -0,0 +1,8 @@
+export default function toTitleCase(input: string): string {
+ if (!input) return '';
+ return input
+ .toLowerCase()
+ .split(' ')
+ .map(word => word.charAt(0).toUpperCase() + word.slice(1))
+ .join(' ');
+}
\ No newline at end of file