@@ -52,35 +52,37 @@ export default async function PaymentPage({
52
52
< PaymentSection serverInvoice = { invoice } />
53
53
54
54
{ /* Invoice Preview */ }
55
- < Card className = "w-full bg-white shadow-sm border-0" >
55
+ < Card className = "w-full shadow-sm border-0" >
56
56
< CardContent className = "p-8" >
57
57
{ /* Header Section */ }
58
58
< div className = "mb-12" >
59
59
< div className = "grid grid-cols-12 gap-4" >
60
60
< div className = "col-span-4" >
61
- < div className = "text-xs text-neutral-500 mb-1" >
61
+ < div className = "text-xs text-muted-foreground mb-1" >
62
62
INVOICE NO
63
63
</ div >
64
64
< div className = "text-sm font-medium" >
65
65
{ invoice . invoiceNumber }
66
66
</ div >
67
67
</ div >
68
68
< div className = "col-span-4" >
69
- < div className = "text-xs text-neutral-500 mb-1" > ISSUED</ div >
69
+ < div className = "text-xs text-muted-foreground mb-1" >
70
+ ISSUED
71
+ </ div >
70
72
< div className = "text-sm" >
71
73
{ formatDate ( invoice . issuedDate ) }
72
74
</ div >
73
75
</ div >
74
76
< div className = "col-span-4" >
75
- < div className = "text-xs text-neutral-500 mb-1" >
77
+ < div className = "text-xs text-muted-foreground mb-1" >
76
78
DUE DATE
77
79
</ div >
78
80
< div className = "text-sm" > { formatDate ( invoice . dueDate ) } </ div >
79
81
</ div >
80
82
</ div >
81
83
{ invoice . recurrence && (
82
84
< div className = "mt-4" >
83
- < div className = "text-xs text-neutral-500 mb-1" >
85
+ < div className = "text-xs text-muted-foreground mb-1" >
84
86
RECURRING
85
87
</ div >
86
88
< div className = "text-sm flex items-center gap-1" >
@@ -108,23 +110,23 @@ export default async function PaymentPage({
108
110
{ /* From/To Section */ }
109
111
< div className = "grid grid-cols-2 gap-16 mb-12" >
110
112
< div >
111
- < div className = "text-xs text-neutral-500 mb-3" > FROM</ div >
113
+ < div className = "text-xs text-muted-foreground mb-3" > FROM</ div >
112
114
< div className = "space-y-1" >
113
115
< div className = "text-sm" > { invoice . creatorName } </ div >
114
- < div className = "text-sm text-neutral-600 " >
116
+ < div className = "text-sm text-muted-foreground " >
115
117
{ invoice . creatorEmail }
116
118
</ div >
117
119
< div className = "text-sm mt-4" > PAYABLE TO:</ div >
118
- < div className = "text-sm text-neutral-600 font-mono break-all" >
120
+ < div className = "text-sm text-muted-foreground font-mono break-all" >
119
121
{ invoice . payee }
120
122
</ div >
121
123
</ div >
122
124
</ div >
123
125
< div >
124
- < div className = "text-xs text-neutral-500 mb-3" > TO</ div >
126
+ < div className = "text-xs text-muted-foreground mb-3" > TO</ div >
125
127
< div className = "space-y-1" >
126
128
< div className = "text-sm" > { invoice . clientName } </ div >
127
- < div className = "text-sm text-neutral-600 " >
129
+ < div className = "text-sm text-muted-foreground " >
128
130
{ invoice . clientEmail }
129
131
</ div >
130
132
</ div >
@@ -136,21 +138,21 @@ export default async function PaymentPage({
136
138
< table className = "w-full" >
137
139
< thead >
138
140
< tr >
139
- < th className = "text-xs text-neutral-500 text-left pb-3" >
141
+ < th className = "text-xs text-muted-foreground text-left pb-3" >
140
142
DESCRIPTION
141
143
</ th >
142
- < th className = "text-xs text-neutral-500 text-right pb-3" >
144
+ < th className = "text-xs text-muted-foreground text-right pb-3" >
143
145
QTY
144
146
</ th >
145
- < th className = "text-xs text-neutral-500 text-right pb-3" >
147
+ < th className = "text-xs text-muted-foreground text-right pb-3" >
146
148
PRICE
147
149
</ th >
148
- < th className = "text-xs text-neutral-500 text-right pb-3" >
150
+ < th className = "text-xs text-muted-foreground text-right pb-3" >
149
151
AMOUNT
150
152
</ th >
151
153
</ tr >
152
154
</ thead >
153
- < tbody className = "border-y border-neutral-200 " >
155
+ < tbody className = "border-y border-border " >
154
156
{ ( invoice . items as InvoiceItem [ ] ) . map ( ( item , index ) => (
155
157
< tr key = { `invoice-item-${ item . description } -${ index } ` } >
156
158
< td className = "py-3" >
@@ -174,18 +176,20 @@ export default async function PaymentPage({
174
176
< div className = "flex justify-end mt-6" >
175
177
< div className = "w-48" >
176
178
< div className = "flex justify-between py-2" >
177
- < span className = "text-sm text-neutral-600" > Subtotal</ span >
179
+ < span className = "text-sm text-muted-foreground" >
180
+ Subtotal
181
+ </ span >
178
182
< span className = "text-sm" >
179
183
{ Number ( invoice . amount ) . toString ( ) }
180
184
</ span >
181
185
</ div >
182
- < div className = "flex justify-between py-2 border-t border-neutral-200 " >
186
+ < div className = "flex justify-between py-2 border-t border-border " >
183
187
< span className = "text-sm font-medium" > Total</ span >
184
188
< div >
185
189
< div className = "text-sm text-right font-medium" >
186
190
{ Number ( invoice . amount ) . toString ( ) }
187
191
</ div >
188
- < div className = "text-xs text-neutral-500 " >
192
+ < div className = "text-xs text-muted-foreground " >
189
193
{ formatCurrencyLabel ( invoice . invoiceCurrency ) }
190
194
</ div >
191
195
</ div >
@@ -197,7 +201,7 @@ export default async function PaymentPage({
197
201
{ /* Payment Details and Notes Section */ }
198
202
< div className = "grid grid-cols-2 gap-16" >
199
203
< div >
200
- < div className = "text-xs text-neutral-500 mb-1" >
204
+ < div className = "text-xs text-muted-foreground mb-1" >
201
205
PAYABLE IN
202
206
</ div >
203
207
< div className = "text-sm" >
@@ -206,7 +210,7 @@ export default async function PaymentPage({
206
210
</ div >
207
211
{ paymentDetailsData ?. paymentDetails ? (
208
212
< div >
209
- < div className = "text-xs text-neutral-500 mb-1" >
213
+ < div className = "text-xs text-muted-foreground mb-1" >
210
214
BANK ACCOUNT DETAILS
211
215
</ div >
212
216
{ paymentDetailsData . paymentDetails . accountName && (
@@ -245,10 +249,10 @@ export default async function PaymentPage({
245
249
</ div >
246
250
) : (
247
251
< div >
248
- < div className = "text-xs text-neutral-500 mb-1" >
252
+ < div className = "text-xs text-muted-foreground mb-1" >
249
253
BANK ACCOUNT DETAILS
250
254
</ div >
251
- < div className = "text-sm text-neutral-500 " >
255
+ < div className = "text-sm text-muted-foreground " >
252
256
{ ! invoice . paymentDetailsId
253
257
? "No payment details available"
254
258
: "Unable to load payment details" }
@@ -257,8 +261,10 @@ export default async function PaymentPage({
257
261
) }
258
262
{ invoice . notes && (
259
263
< div >
260
- < div className = "text-xs text-neutral-500 mb-1" > NOTES</ div >
261
- < div className = "text-sm text-neutral-600 whitespace-pre-wrap break-words max-w-[300px]" >
264
+ < div className = "text-xs text-muted-foreground mb-1" >
265
+ NOTES
266
+ </ div >
267
+ < div className = "text-sm text-muted-foreground whitespace-pre-wrap break-words max-w-[300px]" >
262
268
{ invoice . notes }
263
269
</ div >
264
270
</ div >
0 commit comments