feat: remove unnecessary tabs

This commit is contained in:
Joël Poyet
2025-04-15 18:24:00 +02:00
parent 079e865d59
commit 4b1a8a9516
@@ -113,7 +113,8 @@ export default function UserSettingsDialog(props: IProps): JSX.Element {
"UserSettingsGeneral",
),
);
tabs.push(
// JP: Disable session manager tab for now
/*tabs.push(
new Tab(
UserTab.SessionManager,
_td("settings|sessions|title"),
@@ -121,7 +122,7 @@ export default function UserSettingsDialog(props: IProps): JSX.Element {
<SessionManagerTab showMsc4108QrCode={showMsc4108QrCode} />,
undefined,
),
);
);*/
tabs.push(
new Tab(
UserTab.Appearance,
@@ -199,12 +200,12 @@ export default function UserSettingsDialog(props: IProps): JSX.Element {
"UserSettingsEncryption",
),
);
if (showLabsFlags() || SettingsStore.getFeatureSettingNames().some((k) => SettingsStore.getBetaInfo(k))) {
// JP: Disable labs tab for now
/*if (showLabsFlags() || SettingsStore.getFeatureSettingNames().some((k) => SettingsStore.getBetaInfo(k))) {
tabs.push(
new Tab(UserTab.Labs, _td("common|labs"), <LabsIcon />, <LabsUserSettingsTab />, "UserSettingsLabs"),
);
}
}*/
if (mjolnirEnabled) {
tabs.push(
new Tab(
@@ -216,7 +217,8 @@ export default function UserSettingsDialog(props: IProps): JSX.Element {
),
);
}
tabs.push(
// JP: Disable help tab for now
/* tabs.push(
new Tab(
UserTab.Help,
_td("setting|help_about|title"),
@@ -224,7 +226,7 @@ export default function UserSettingsDialog(props: IProps): JSX.Element {
<HelpUserSettingsTab />,
"UserSettingsHelpAbout",
),
);
);*/
return tabs as NonEmptyArray<Tab<UserTab>>;
};