fix: add featureflag to hide ThemeSwitcher

until ThemeSwitcher is fully done with theming
pull/2480/head^2
Audric Ackermann 3 years ago
parent 3915e946b4
commit efd249f094

@ -29,6 +29,7 @@ window.sessionFeatureFlags = {
useTestNet: Boolean(
process.env.NODE_APP_INSTANCE && process.env.NODE_APP_INSTANCE.includes('testnet')
),
useSettingsThemeSwitcher: false,
debug: {
debugFileServerRequests: false,
debugNonSnodeRequests: false,

@ -19,7 +19,7 @@ export const SettingsCategoryAppearance = (props: { hasPassword: boolean | null
return (
<>
<SettingsThemeSwitcher />
{window.sessionFeatureFlags.useSettingsThemeSwitcher && <SettingsThemeSwitcher />}
<ZoomingSessionSlider />
{isHideMenuBarSupported() && (
<SessionToggleWithDescription

1
ts/window.d.ts vendored

@ -38,6 +38,7 @@ declare global {
sessionFeatureFlags: {
useOnionRequests: boolean;
useTestNet: boolean;
useSettingsThemeSwitcher: boolean;
debug: {
debugFileServerRequests: boolean;
debugNonSnodeRequests: boolean;

Loading…
Cancel
Save