Skip to content

Commit

Permalink
Merge pull request #237 from compolabs/feat/disable-features-2
Browse files Browse the repository at this point in the history
fix: disable features 2
  • Loading branch information
EchoDex authored Dec 23, 2024
2 parents fd94788 + 4b71a6a commit b34e7fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/providers/UnderConstructionProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactNode } from "react";
import styled from "@emotion/styled";
import { useFlag, useFlagsStatus } from "@unleash/proxy-client-react";

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

import UnderConstruction from "@screens/Errors/UnderConstruction";
Expand All @@ -11,8 +11,12 @@ interface UnderConstructionProviderProps {
}

export const UnderConstructionProvider: React.FC<UnderConstructionProviderProps> = ({ children }) => {
const isUnderConstruction = useFlag("under_construction");
const { flagsReady } = useFlagsStatus();
// const isUnderConstruction = useFlag("under_construction");
// const { flagsReady } = useFlagsStatus();

const flagsReady = true;
const isUnderConstruction = false;

if (!flagsReady) {
return <LoaderStyled size={32} hideText />;
}
Expand Down
6 changes: 4 additions & 2 deletions src/screens/SpotScreen/Chart/TradingViewAdvanceWidget.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useRef } from "react";
import { useFlag } from "@unleash/proxy-client-react";
// import { useFlag } from "@unleash/proxy-client-react";
import { observer } from "mobx-react";

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

const TradingViewChartAdvance = observer(() => {
const isUnderConstruction = useFlag("Trading_view_advance_stagging_");
// const isUnderConstruction = useFlag("Trading_view_advance_stagging_");
const isUnderConstruction = false;

const chartContainerRef = useRef<HTMLDivElement>() as React.MutableRefObject<HTMLInputElement>;
const { tradeStore } = useStores();
const defaultProps: Omit<ChartContainerProps, "container"> = {
Expand Down

0 comments on commit b34e7fe

Please sign in to comment.