= (props) => {
- {status === 'active' && (
-
- {statusText.active}
-
- )}
- {status !== 'active' && (
-
-
- {statusText.inactive}
-
-
-
- )}
+
);
};
+
+export const StrategyStatusTag: FC<{
+ status: StrategyStatus;
+ isExplorer?: boolean;
+}> = (props) => {
+ const { status, isExplorer } = props;
+ if (status === 'active') {
+ return (
+
+ {statusText.active}
+
+ );
+ } else {
+ return (
+
+
+ {statusText.inactive}
+
+
+
+ );
+ }
+};
diff --git a/src/components/strategies/overview/strategyBlock/StrategyBlockTradeCount.tsx b/src/components/strategies/overview/strategyBlock/StrategyBlockTradeCount.tsx
index 0eb61ebfd..4ce7fd55a 100644
--- a/src/components/strategies/overview/strategyBlock/StrategyBlockTradeCount.tsx
+++ b/src/components/strategies/overview/strategyBlock/StrategyBlockTradeCount.tsx
@@ -18,9 +18,7 @@ export const StrategyBlockTradeCount: FC
= ({ strategy }) => {
strategy.status === 'active' ? '' : 'opacity-50'
)}
>
-
- Trade Count
-
+ Trades
{count}
);
diff --git a/src/components/strategies/overview/strategyBlock/StrategyGraph.tsx b/src/components/strategies/overview/strategyBlock/StrategyGraph.tsx
index 3f4dbc9a6..f5b731d58 100644
--- a/src/components/strategies/overview/strategyBlock/StrategyGraph.tsx
+++ b/src/components/strategies/overview/strategyBlock/StrategyGraph.tsx
@@ -1,4 +1,4 @@
-import { FC } from 'react';
+import { FC, useId } from 'react';
import { Strategy } from 'libs/queries';
import { cn, prettifyNumber, sanitizeNumber } from 'utils/helpers';
import {
@@ -17,6 +17,7 @@ import style from './StrategyGraph.module.css';
interface Props {
strategy: Strategy;
+ className?: string;
}
const isSmallRange = ({ order0, order1 }: Strategy) => {
@@ -49,7 +50,8 @@ const highest = width - 10;
const fontSize = 16;
const fontWidth = fontSize / 2;
-export const StrategyGraph: FC = ({ strategy }) => {
+export const StrategyGraph: FC = ({ strategy, className }) => {
+ const clipPathId = useId();
const { base, quote, order0: buyOrder, order1: sellOrder } = strategy;
const { marketPrice: currentPrice } = useMarketPrice({ base, quote });
const buy = {
@@ -161,7 +163,7 @@ export const StrategyGraph: FC = ({ strategy }) => {
return (