fix: react-doctor unused-export 141→~80 (remove dead exports, enums/marketing unused, inline campaignStatusEnum)

This commit is contained in:
Nora
2026-06-26 05:25:36 -06:00
parent 0ea11e4db6
commit 13d15883b1
34 changed files with 106 additions and 174 deletions
+10 -10
View File
@@ -131,7 +131,7 @@ export type AddonKey = keyof typeof ADDONS;
// ── Feature list per tier (for comparison table) ────────────────────────────
export const TIER_FEATURE_MATRIX: Record<PlanTierKey, string[]> = {
const TIER_FEATURE_MATRIX: Record<PlanTierKey, string[]> = {
starter: [
"Products catalog",
"Stops management (10/mo)",
@@ -168,35 +168,35 @@ export const TIER_FEATURE_MATRIX: Record<PlanTierKey, string[]> = {
// ── Utility functions ────────────────────────────────────────────────────────
export function formatPrice(amount: number | null): string {
function formatPrice(amount: number | null): string {
if (amount === null) return "Custom";
return `$${amount.toFixed(0)}`;
}
export function formatPricePerMonth(amount: number | null): string {
function formatPricePerMonth(amount: number | null): string {
if (amount === null) return "Custom";
return `$${amount}/mo`;
}
export function getPlanMonthlyPrice(tier: PlanTierKey): number | null {
function getPlanMonthlyPrice(tier: PlanTierKey): number | null {
return PLAN_TIERS[tier]?.monthlyPrice ?? null;
}
export function getPlanAnnualPrice(tier: PlanTierKey): number | null {
function getPlanAnnualPrice(tier: PlanTierKey): number | null {
return PLAN_TIERS[tier]?.annualPrice ?? null;
}
export function getAddonMonthlyPrice(addon: AddonKey): number {
function getAddonMonthlyPrice(addon: AddonKey): number {
return ADDONS[addon]?.monthlyPrice ?? 0;
}
export function getAddonAnnualPrice(addon: AddonKey): number {
function getAddonAnnualPrice(addon: AddonKey): number {
return ADDONS[addon]?.annualPrice ?? 0;
}
export function calculateAnnualSavings(monthlyTotal: number): number {
function calculateAnnualSavings(monthlyTotal: number): number {
return Math.round(monthlyTotal * 0.25); // 25% annual discount
}
export const BILLING_COMPANY_NAME = "Cielo Hermosa, LLC";
export const BILLING_EMAIL = "billing@cielohermosa.com";
const BILLING_COMPANY_NAME = "Cielo Hermosa, LLC";
const BILLING_EMAIL = "billing@cielohermosa.com";