Hide subscriptions in store and account modal behind a feature flag

Subscriptions aren't ready yet. Add SUBSCRIPTIONS_ENABLED (currently
false) in Cosmetics.ts to gate the Subscriptions store tab, the
subscription panel on the account modal, and its cosmetics fetch.
Flip the flag to true to re-enable.
This commit is contained in:
evanpelle
2026-06-11 17:07:25 -07:00
parent f50456c688
commit cdcc774793
3 changed files with 22 additions and 7 deletions
+9 -1
View File
@@ -12,6 +12,7 @@ import {
fetchCosmetics,
purchaseCosmetic,
resolveCosmetics,
SUBSCRIPTIONS_ENABLED,
} from "./Cosmetics";
import { translateText } from "./Utils";
@@ -32,7 +33,14 @@ export class StoreModal extends BaseModal {
return {
tabs: [
{ key: "packs", label: translateText("store.packs") },
{ key: "subscriptions", label: translateText("store.subscriptions") },
...(SUBSCRIPTIONS_ENABLED
? [
{
key: "subscriptions",
label: translateText("store.subscriptions"),
},
]
: []),
{ key: "patterns", label: translateText("store.patterns") },
{ key: "flags", label: translateText("store.flags") },
],