From 0d7864da4ed93d0fff77225bdbf86f9a06aea185 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 10 Dec 2020 07:02:10 -0800 Subject: [PATCH] Hide dark mode setting in OSS version Summary: See https://github.com/facebook/flipper/issues/1755, we did hide the Sandy option in OSS, but not the dark mode option. I intend to enable & switch to Sandy in OSS after the holidays, to make it easier to deal with any possible fallout. Reviewed By: nikoant Differential Revision: D25460906 fbshipit-source-id: b80d751f2ff435775d08d17effb81e56db738d4d --- desktop/app/src/chrome/SettingsSheet.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/app/src/chrome/SettingsSheet.tsx b/desktop/app/src/chrome/SettingsSheet.tsx index 1c0fea0b4..fba40db33 100644 --- a/desktop/app/src/chrome/SettingsSheet.tsx +++ b/desktop/app/src/chrome/SettingsSheet.tsx @@ -29,6 +29,7 @@ import SandySettingsPanel from '../fb-stubs/SandySettingsPanel'; import {reportUsage} from '../utils/metrics'; import {Modal, message} from 'antd'; import {Layout, withTrackingScope, _NuxManagerContext} from 'flipper-plugin'; +import GK from '../fb-stubs/GK'; const Container = styled(FlexColumn)({ padding: 20, @@ -254,7 +255,7 @@ class SettingsSheet extends Component { }); }} /> - {!disableSandy && ( + {GK.get('flipper_sandy') && !disableSandy && (