diff --git a/src/components/Billing.tsx b/src/components/Billing.tsx index 2e6da18..18d94fc 100644 --- a/src/components/Billing.tsx +++ b/src/components/Billing.tsx @@ -297,15 +297,16 @@ const Billing: React.FC = () => { Date Amount Status + Invoice {billingHistory.map(payment => ( - + {new Date(payment.date).toLocaleDateString()} - + {(payment.amount / 100).toLocaleString( 'en-US', { @@ -327,6 +328,22 @@ const Billing: React.FC = () => { payment.status.slice(1)} + + {payment.invoiceUrl ? ( + + Download + + ) : ( + + Unavailable + + )} + ))} @@ -359,8 +376,8 @@ const Billing: React.FC = () => { ? 'border-white bg-neutral-800/60 ring-1 ring-white shadow-[0_0_30px_rgba(255,255,255,0.05)]' : 'border-white/10 hover:border-white/20 hover:bg-white/5', plan.highlight && - selectedPlan !== plan.id && - 'border-amber-500/30' + selectedPlan !== plan.id && + 'border-amber-500/30' )} > {plan.highlight && (