Skip to content

Commit b34e7fe

Browse files
authored
Merge pull request #237 from compolabs/feat/disable-features-2
fix: disable features 2
2 parents fd94788 + 4b71a6a commit b34e7fe

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/providers/UnderConstructionProvider.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { ReactNode } from "react";
22
import styled from "@emotion/styled";
3-
import { useFlag, useFlagsStatus } from "@unleash/proxy-client-react";
43

4+
// import { useFlag, useFlagsStatus } from "@unleash/proxy-client-react";
55
import Loader from "@components/Loader";
66

77
import UnderConstruction from "@screens/Errors/UnderConstruction";
@@ -11,8 +11,12 @@ interface UnderConstructionProviderProps {
1111
}
1212

1313
export const UnderConstructionProvider: React.FC<UnderConstructionProviderProps> = ({ children }) => {
14-
const isUnderConstruction = useFlag("under_construction");
15-
const { flagsReady } = useFlagsStatus();
14+
// const isUnderConstruction = useFlag("under_construction");
15+
// const { flagsReady } = useFlagsStatus();
16+
17+
const flagsReady = true;
18+
const isUnderConstruction = false;
19+
1620
if (!flagsReady) {
1721
return <LoaderStyled size={32} hideText />;
1822
}

src/screens/SpotScreen/Chart/TradingViewAdvanceWidget.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useEffect, useRef } from "react";
2-
import { useFlag } from "@unleash/proxy-client-react";
2+
// import { useFlag } from "@unleash/proxy-client-react";
33
import { observer } from "mobx-react";
44

55
import { ChartingLibraryWidgetOptions, LanguageCode, ResolutionString, widget } from "@compolabs/tradingview-chart";
@@ -35,7 +35,9 @@ const getLanguageFromURL = (): LanguageCode | null => {
3535
};
3636

3737
const TradingViewChartAdvance = observer(() => {
38-
const isUnderConstruction = useFlag("Trading_view_advance_stagging_");
38+
// const isUnderConstruction = useFlag("Trading_view_advance_stagging_");
39+
const isUnderConstruction = false;
40+
3941
const chartContainerRef = useRef<HTMLDivElement>() as React.MutableRefObject<HTMLInputElement>;
4042
const { tradeStore } = useStores();
4143
const defaultProps: Omit<ChartContainerProps, "container"> = {

0 commit comments

Comments
 (0)