From 2ae3374da47af5e6a9be2fa8d7c1683b13ba6d51 Mon Sep 17 00:00:00 2001 From: SamBobBarnes Date: Sat, 12 Oct 2024 18:47:39 -0500 Subject: [PATCH] Revert "added feature flag" This reverts commit 187b41aa1b5c82cd4584a1688174a72b25ae4d71. --- packages/desktop-client/src/components/settings/Upcoming.tsx | 5 ----- packages/desktop-client/src/hooks/useFeatureFlag.ts | 1 - packages/loot-core/src/types/prefs.d.ts | 3 +-- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/desktop-client/src/components/settings/Upcoming.tsx b/packages/desktop-client/src/components/settings/Upcoming.tsx index 854c9f41c0d..1e442e566ba 100644 --- a/packages/desktop-client/src/components/settings/Upcoming.tsx +++ b/packages/desktop-client/src/components/settings/Upcoming.tsx @@ -6,7 +6,6 @@ import { Column } from 'glamor/jsxstyle'; import { type SyncedPrefs } from 'loot-core/types/prefs'; -import { useFeatureFlag } from '../../hooks/useFeatureFlag'; import { useSyncedPref } from '../../hooks/useSyncedPref'; import { type CSSProperties, theme } from '../../style'; import { Button } from '../common/Button2'; @@ -39,13 +38,9 @@ export function UpcomingLengthSettings() { }, }; - const enabled = useFeatureFlag('upcomingLengthAdjustment'); - const location = useLocation(); const [expanded, setExpanded] = useState(location.hash === '#upcomingLength'); - if (!enabled) return null; - return expanded ? ( = { spendingReport: false, dashboards: false, actionTemplating: false, - upcomingLengthAdjustment: false, }; export function useFeatureFlag(name: FeatureFlag): boolean { diff --git a/packages/loot-core/src/types/prefs.d.ts b/packages/loot-core/src/types/prefs.d.ts index 8678cb0218c..8817cc3b509 100644 --- a/packages/loot-core/src/types/prefs.d.ts +++ b/packages/loot-core/src/types/prefs.d.ts @@ -3,8 +3,7 @@ export type FeatureFlag = | 'reportBudget' | 'goalTemplatesEnabled' | 'spendingReport' - | 'actionTemplating' - | 'upcomingLengthAdjustment'; + | 'actionTemplating'; /** * Cross-device preferences. These sync across devices when they are changed.