Skip to content

Commit 670254f

Browse files
committed
add feature flag
1 parent 23bc086 commit 670254f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/insights/src/components/PriceFeed/Chart/chart-toolbar.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import {
1515
useChartResolution,
1616
} from "./use-chart-toolbar";
1717

18+
const ENABLE_RESOLUTION_SELECTOR = false;
19+
1820
export const ChartToolbar = () => {
1921
const logger = useLogger();
2022
const [lookback, setLookback] = useChartLookback();
@@ -56,6 +58,11 @@ export const ChartToolbar = () => {
5658
[logger, setResolution, setLookback],
5759
);
5860

61+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
62+
if (!ENABLE_RESOLUTION_SELECTOR) {
63+
return;
64+
}
65+
5966
return (
6067
<>
6168
<Select

0 commit comments

Comments
 (0)