Skip to content
Snippets Groups Projects
Unverified Commit 42e1b5ca authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:fire: removing privacyMode feature flag (#1688)

parent 55285f4c
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ import React, { ...@@ -8,7 +8,6 @@ import React, {
import usePrivacyMode from 'loot-core/src/client/privacy'; import usePrivacyMode from 'loot-core/src/client/privacy';
import useFeatureFlag from '../hooks/useFeatureFlag';
import { useResponsive } from '../ResponsiveProvider'; import { useResponsive } from '../ResponsiveProvider';
import View from './common/View'; import View from './common/View';
...@@ -53,7 +52,6 @@ export default function PrivacyFilter({ ...@@ -53,7 +52,6 @@ export default function PrivacyFilter({
children, children,
...props ...props
}: PrivacyFilterProps) { }: PrivacyFilterProps) {
let privacyModeFeatureFlag = useFeatureFlag('privacyMode');
let privacyMode = usePrivacyMode(); let privacyMode = usePrivacyMode();
// Limit mobile support for now. // Limit mobile support for now.
let { isNarrowWidth } = useResponsive(); let { isNarrowWidth } = useResponsive();
...@@ -67,7 +65,7 @@ export default function PrivacyFilter({ ...@@ -67,7 +65,7 @@ export default function PrivacyFilter({
let blurAmount = blurIntensity != null ? `${blurIntensity}px` : '3px'; let blurAmount = blurIntensity != null ? `${blurIntensity}px` : '3px';
return !privacyModeFeatureFlag || !activate ? ( return !activate ? (
<>{Children.toArray(children)}</> <>{Children.toArray(children)}</>
) : ( ) : (
<BlurredOverlay blurIntensity={blurAmount} {...props}> <BlurredOverlay blurIntensity={blurAmount} {...props}>
......
...@@ -296,7 +296,6 @@ export default function Titlebar({ style }) { ...@@ -296,7 +296,6 @@ export default function Titlebar({ style }) {
state => state.prefs.global.floatingSidebar, state => state.prefs.global.floatingSidebar,
); );
let privacyModeFeatureFlag = useFeatureFlag('privacyMode');
let themesFlag = useFeatureFlag('themes'); let themesFlag = useFeatureFlag('themes');
return isNarrowWidth ? null : ( return isNarrowWidth ? null : (
...@@ -369,7 +368,7 @@ export default function Titlebar({ style }) { ...@@ -369,7 +368,7 @@ export default function Titlebar({ style }) {
<View style={{ flex: 1 }} /> <View style={{ flex: 1 }} />
<UncategorizedButton /> <UncategorizedButton />
{themesFlag && <ThemeSelector />} {themesFlag && <ThemeSelector />}
{privacyModeFeatureFlag && <PrivacyButton />} <PrivacyButton />
{serverURL ? <SyncButton style={{ marginLeft: 10 }} /> : null} {serverURL ? <SyncButton style={{ marginLeft: 10 }} /> : null}
<LoggedInUser style={{ marginLeft: 10 }} /> <LoggedInUser style={{ marginLeft: 10 }} />
</View> </View>
......
...@@ -99,7 +99,6 @@ export default function ExperimentalFeatures() { ...@@ -99,7 +99,6 @@ export default function ExperimentalFeatures() {
Goal templates Goal templates
</FeatureToggle> </FeatureToggle>
<FeatureToggle flag="privacyMode">Privacy mode</FeatureToggle>
<FeatureToggle flag="experimentalOfxParser"> <FeatureToggle flag="experimentalOfxParser">
Experimental OFX parser Experimental OFX parser
</FeatureToggle> </FeatureToggle>
......
...@@ -6,7 +6,6 @@ const DEFAULT_FEATURE_FLAG_STATE: Record<FeatureFlag, boolean> = { ...@@ -6,7 +6,6 @@ const DEFAULT_FEATURE_FLAG_STATE: Record<FeatureFlag, boolean> = {
categorySpendingReport: false, categorySpendingReport: false,
reportBudget: false, reportBudget: false,
goalTemplatesEnabled: false, goalTemplatesEnabled: false,
privacyMode: true,
themes: false, themes: false,
experimentalOfxParser: true, experimentalOfxParser: true,
}; };
......
...@@ -4,7 +4,6 @@ export type FeatureFlag = ...@@ -4,7 +4,6 @@ export type FeatureFlag =
| 'categorySpendingReport' | 'categorySpendingReport'
| 'reportBudget' | 'reportBudget'
| 'goalTemplatesEnabled' | 'goalTemplatesEnabled'
| 'privacyMode'
| 'themes' | 'themes'
| 'experimentalOfxParser'; | 'experimentalOfxParser';
......
---
category: Maintenance
authors: [MatissJanis]
---
Remove `privacyMode` feature flag as this feature is GA
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment