diff --git a/app/components/LiveTransactionStatsCard.tsx b/app/components/LiveTransactionStatsCard.tsx index 5d92c950..c56691bf 100644 --- a/app/components/LiveTransactionStatsCard.tsx +++ b/app/components/LiveTransactionStatsCard.tsx @@ -12,13 +12,11 @@ import { Bar } from 'react-chartjs-2'; import CountUp from 'react-countup'; import { RefreshCw } from 'react-feather'; -import { useCluster } from '../providers/cluster'; import { useValidatorsAppPingStats, ValidatorsAppPingStatsInfo, ValidatorsAppPingStatsRecord, } from '../providers/stats/ValidatorsAppStatsProvider'; -import { Cluster } from '../utils/cluster'; Chart.register(BarElement, CategoryScale, LinearScale, Tooltip); @@ -42,18 +40,18 @@ const SERIES_INFO = { export function LiveTransactionStatsCard() { const [series, setSeries] = React.useState('short'); - const { cluster } = useCluster(); + // const { cluster } = useCluster(); return (

Live Transaction Stats

- {cluster === Cluster.MainnetBeta ? ( + {/* {cluster === Cluster.MainnetBeta ? ( ) : ( - )} + )} */}
); } @@ -380,6 +378,7 @@ function AnimatedTransactionCount({ info }: { info: PerformanceInfo }) { ); } +// eslint-disable-next-line @typescript-eslint/no-unused-vars function PingStatsCardBody({ series, setSeries }: { series: Series; setSeries: SetSeries }) { const pingInfo = useSolanaPingInfo(); @@ -390,6 +389,7 @@ function PingStatsCardBody({ series, setSeries }: { series: Series; setSeries: S return ; } +// eslint-disable-next-line @typescript-eslint/no-unused-vars function ValidatorsAppPingStatsCardBody({ series, setSeries }: { series: Series; setSeries: SetSeries }) { const pingInfo = useValidatorsAppPingStats();