fix(csms): fix lint errors, clean up imports and improve code formatting

This commit is contained in:
2026-03-19 21:28:48 +08:00
parent 63349a17ed
commit 524de66ad3
8 changed files with 20 additions and 36 deletions

View File

@@ -184,7 +184,6 @@ export default function PricingPage() {
const [activeTier, setActiveTier] = useState<PriceTier>("peak");
const [isDirty, setIsDirty] = useState(false);
const [saving, setSaving] = useState(false);
const [showPayload, setShowPayload] = useState(false);
// Populate state once remote tariff loads
useEffect(() => {
@@ -286,7 +285,6 @@ export default function PricingPage() {
// ── Derived values ───────────────────────────────────────────────────────
const slots = scheduleToSlots(schedule);
const apiPayload: TariffConfig = { slots, prices };
// ── Admin gate ───────────────────────────────────────────────────────────
if (!isAdmin) {