refactor: remove yearly billing interval, keep only one_time and monthly
This commit is contained in:
@@ -24,13 +24,11 @@ type CategorySelection = {
|
||||
// ─── Billing interval helpers ─────────────────────────────────────────────────
|
||||
function billingLabel(interval?: string) {
|
||||
if (interval === 'one_time') return 'einmalig'
|
||||
if (interval === 'yearly') return '/ Jahr'
|
||||
return '/ Monat'
|
||||
}
|
||||
|
||||
function billingBadgeClass(interval?: string) {
|
||||
if (interval === 'one_time') return 'bg-slate-500/20 text-slate-300 border-slate-500/30'
|
||||
if (interval === 'yearly') return 'bg-purple-500/20 text-purple-400 border-purple-500/30'
|
||||
return 'bg-blue-500/20 text-blue-400 border-blue-500/30'
|
||||
}
|
||||
|
||||
@@ -283,7 +281,7 @@ export function OrderWizard({
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="font-bold text-base text-white">{product.name}</span>
|
||||
<span className={`text-[10px] px-1.5 py-0.5 rounded border ${billingBadgeClass(product.billing_interval)}`}>
|
||||
{product.billing_interval === 'one_time' ? 'Einmalig' : product.billing_interval === 'yearly' ? 'Abo/Jahr' : 'Abo/Monat'}
|
||||
{product.billing_interval === 'one_time' ? 'Einmalig' : 'Abo/Monat'}
|
||||
</span>
|
||||
</div>
|
||||
<span className="text-primary font-semibold text-sm">
|
||||
|
||||
Reference in New Issue
Block a user