From dc903db70c3f282b28a8755e31a38a87aec2fef5 Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Mon, 24 Jun 2024 15:26:54 +0800 Subject: [PATCH] feat: testnet show ckb_hodl_wave charts (#385) --- src/pages/StatisticsChart/index.tsx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/pages/StatisticsChart/index.tsx b/src/pages/StatisticsChart/index.tsx index 7728ad86e..a6470982e 100644 --- a/src/pages/StatisticsChart/index.tsx +++ b/src/pages/StatisticsChart/index.tsx @@ -2,7 +2,6 @@ import { ReactNode } from 'react' import 'default-passive-events' import { useTranslation } from 'react-i18next' import Content from '../../components/Content' -import { isMainnet } from '../../utils/chain' import { DifficultyHashRateChart } from './mining/DifficultyHashRate' import { DifficultyUncleRateEpochChart } from './mining/DifficultyUncleRateEpoch' import { TransactionCountChart } from './activities/TransactionCount' @@ -98,15 +97,11 @@ const useChartsData = () => { chart: , path: '/charts/cell-count', }, - ...(isMainnet() - ? [ - { - title: t('statistic.ckb_hodl_wave'), - chart: , - path: '/charts/ckb-hodl-wave', - }, - ] - : []), + { + title: t('statistic.ckb_hodl_wave'), + chart: , + path: '/charts/ckb-hodl-wave', + }, { title: `${t('statistic.balance_distribution')}`, chart: ,