diff --git a/apps/web/src/SubscriptionPlansManager.tsx b/apps/web/src/SubscriptionPlansManager.tsx index 006882c..9cf36eb 100644 --- a/apps/web/src/SubscriptionPlansManager.tsx +++ b/apps/web/src/SubscriptionPlansManager.tsx @@ -14,6 +14,7 @@ import { type SubscriptionPlan, } from "./api.js"; import { Modal } from "./ui/Modal.js"; +import { currencyOptions } from "./lib/currencies.js"; // Admin-only subscription PLAN catalog. Plans are admin-composed, versioned config the // operator sells from (so the operator never types a price). Editing a plan PUBLISHES A @@ -348,7 +349,11 @@ export function SubscriptionPlansManager() { setForm((f) => f && { ...f, priceMajor: e.target.value })} placeholder="e.g. 800" /> - setForm((f) => f && { ...f, currency: e.target.value })} /> + / {t(PERIOD_KEY[form.period])} diff --git a/apps/web/src/TariffEditorForm.tsx b/apps/web/src/TariffEditorForm.tsx index 3407375..50cd04d 100644 --- a/apps/web/src/TariffEditorForm.tsx +++ b/apps/web/src/TariffEditorForm.tsx @@ -1,4 +1,5 @@ import { useTranslation } from "react-i18next"; +import { currencyOptions } from "./lib/currencies.js"; import { isTariffV2, type TariffBlock, @@ -101,7 +102,7 @@ function emptyTier(): TierForm { export function emptyForm(): FormState { return { - currency: "EUR", + currency: "ALL", gracePeriodEntryMin: "15", incrementMin: "60", lostTicket: "20.00", @@ -339,7 +340,11 @@ export function TariffEditorForm({