Skip to content

Commit

Permalink
Revert "added feature flag"
Browse files Browse the repository at this point in the history
This reverts commit 187b41a.
  • Loading branch information
SamBobBarnes committed Oct 12, 2024
1 parent 1add989 commit 2ae3374
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions packages/desktop-client/src/components/settings/Upcoming.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 ? (
<Setting
primaryAction={
Expand Down
1 change: 0 additions & 1 deletion packages/desktop-client/src/hooks/useFeatureFlag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const DEFAULT_FEATURE_FLAG_STATE: Record<FeatureFlag, boolean> = {
spendingReport: false,
dashboards: false,
actionTemplating: false,
upcomingLengthAdjustment: false,
};

export function useFeatureFlag(name: FeatureFlag): boolean {
Expand Down
3 changes: 1 addition & 2 deletions packages/loot-core/src/types/prefs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ export type FeatureFlag =
| 'reportBudget'
| 'goalTemplatesEnabled'
| 'spendingReport'
| 'actionTemplating'
| 'upcomingLengthAdjustment';
| 'actionTemplating';

/**
* Cross-device preferences. These sync across devices when they are changed.
Expand Down

0 comments on commit 2ae3374

Please sign in to comment.