fix: remove theme shop from settings

This commit is contained in:
Paul Makles 2022-01-10 20:37:20 +00:00
parent 645221b384
commit 5768ff7c2f
2 changed files with 3 additions and 14 deletions

View file

@ -12,12 +12,12 @@ import Store from "../interfaces/Store";
/**
* Union type of available experiments.
*/
export type Experiment = "dummy" | "theme_shop";
export type Experiment = "dummy";
/**
* Currently active experiments.
*/
export const AVAILABLE_EXPERIMENTS: Experiment[] = ["dummy", "theme_shop"];
export const AVAILABLE_EXPERIMENTS: Experiment[] = ["dummy"];
/**
* Definitions for experiments listed by {@link Experiment}.
@ -29,10 +29,6 @@ export const EXPERIMENTS: {
title: "Dummy Experiment",
description: "This is a dummy experiment.",
},
theme_shop: {
title: "Theme Shop",
description: "Allows you to access and set user submitted themes.",
},
};
export interface Data {

View file

@ -189,19 +189,12 @@ export default observer(() => {
title: <Text id="app.settings.pages.experiments.title" />,
},
{
divider: !experiments.isEnabled("theme_shop"),
divider: true,
category: "revolt",
id: "bots",
icon: <Bot size={20} />,
title: <Text id="app.settings.pages.bots.title" />,
},
{
hidden: !experiments.isEnabled("theme_shop"),
divider: true,
id: "theme_shop",
icon: <Store size={20} />,
title: <Text id="app.settings.pages.theme_shop.title" />,
},
{
id: "feedback",
icon: <Megaphone size={20} />,