mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Make theme shop hidden an experiment
This commit is contained in:
@@ -50,6 +50,7 @@ import { Profile } from "./panes/Profile";
|
||||
import { Sessions } from "./panes/Sessions";
|
||||
import { Sync } from "./panes/Sync";
|
||||
import { ThemeShop } from "./panes/ThemeShop";
|
||||
import { isExperimentEnabled } from "../../redux/reducers/experiments";
|
||||
|
||||
export default function Settings() {
|
||||
const history = useHistory();
|
||||
@@ -125,12 +126,14 @@ export default function Settings() {
|
||||
title: <Text id="app.settings.pages.experiments.title" />,
|
||||
},
|
||||
{
|
||||
divider: !isExperimentEnabled('theme_shop'),
|
||||
category: "revolt",
|
||||
id: "bots",
|
||||
icon: <Bot size={20} />,
|
||||
title: <Text id="app.settings.pages.bots.title" />,
|
||||
},
|
||||
{
|
||||
hidden: !isExperimentEnabled('theme_shop'),
|
||||
divider: true,
|
||||
id: "theme_shop",
|
||||
icon: <Store size={20} />,
|
||||
@@ -176,9 +179,9 @@ export default function Settings() {
|
||||
<Route path="/settings/bots">
|
||||
<MyBots />
|
||||
</Route>
|
||||
<Route path="/settings/theme_shop">
|
||||
{isExperimentEnabled('theme_shop') && <Route path="/settings/theme_shop">
|
||||
<ThemeShop />
|
||||
</Route>
|
||||
</Route>}
|
||||
<Route path="/settings/feedback">
|
||||
<Feedback />
|
||||
</Route>
|
||||
|
||||
Reference in New Issue
Block a user