Skip to content

Commit

Permalink
feat: testnet show ckb_hodl_wave charts (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmcNotafraid authored Jun 24, 2024
1 parent b13e419 commit dc903db
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/pages/StatisticsChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -98,15 +97,11 @@ const useChartsData = () => {
chart: <CellCountChart isThumbnail />,
path: '/charts/cell-count',
},
...(isMainnet()
? [
{
title: t('statistic.ckb_hodl_wave'),
chart: <CkbHodlWaveChart isThumbnail />,
path: '/charts/ckb-hodl-wave',
},
]
: []),
{
title: t('statistic.ckb_hodl_wave'),
chart: <CkbHodlWaveChart isThumbnail />,
path: '/charts/ckb-hodl-wave',
},
{
title: `${t('statistic.balance_distribution')}`,
chart: <BalanceDistributionChart isThumbnail />,
Expand Down

0 comments on commit dc903db

Please sign in to comment.