Skip to content

Commit

Permalink
chore(frontend): remove unneeded flag (#3238)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeepc committed Oct 10, 2023
1 parent c52cf47 commit 50fe208
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Expand Up @@ -6,7 +6,6 @@ interface IProps {
}

const flagValues = {
[Flag.IsAnalyticsPageEnabled]: true,
[Flag.IsAgentDataStoreEnabled]: false,
[Flag.IsLocalModeEnabled]: false,
};
Expand Down
10 changes: 4 additions & 6 deletions web/src/pages/Settings/Content.tsx
Expand Up @@ -7,7 +7,7 @@ import Linter from 'components/Settings/Linter';
import Polling from 'components/Settings/Polling';
import TestRunner from 'components/Settings/TestRunner';
import BetaBadge from 'components/BetaBadge/BetaBadge';
import {Flag, useCustomization, withCustomization} from 'providers/Customization';
import {useCustomization, withCustomization} from 'providers/Customization';
import * as S from './Settings.styled';

const TabsKeys = {
Expand Down Expand Up @@ -40,11 +40,9 @@ const Content = () => {
<Tabs.TabPane key={TabsKeys.DataStore} tab="Configure Data Store">
<DataStore />
</Tabs.TabPane>
{getFlag(Flag.IsAnalyticsPageEnabled) && (
<Tabs.TabPane key={TabsKeys.Analytics} tab="Analytics">
<Analytics />
</Tabs.TabPane>
)}
<Tabs.TabPane key={TabsKeys.Analytics} tab="Analytics">
<Analytics />
</Tabs.TabPane>
<Tabs.TabPane key={TabsKeys.Polling} tab="Trace Polling">
<Polling />
</Tabs.TabPane>
Expand Down
1 change: 0 additions & 1 deletion web/src/providers/Customization/Customization.provider.tsx
Expand Up @@ -7,7 +7,6 @@ export enum Operation {
}

export enum Flag {
IsAnalyticsPageEnabled = 'isAnalyticsPageEnabled',
IsAgentDataStoreEnabled = 'isAgentDataStoreEnabled',
IsLocalModeEnabled = 'isLocalModeEnabled',
}
Expand Down

0 comments on commit 50fe208

Please sign in to comment.