Skip to content

Commit

Permalink
feat: only mainnet show ckb_hodl_wave chart
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <mingchang555@hotmail.com>
  • Loading branch information
zmcNotafraid committed Jun 4, 2024
1 parent 1490f9d commit 8a95a00
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/pages/StatisticsChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ 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 @@ -211,11 +212,15 @@ const useChartsData = () => {
chart: <CellCountChart isThumbnail />,
path: '/charts/cell-count',
},
{
title: t('statistic.ckb_hodl_wave'),
chart: <CkbHodlWaveChart isThumbnail />,
path: '/charts/ckb-hodl-wave',
},
...(isMainnet()
? [
{
title: t('statistic.ckb_hodl_wave'),
chart: <CkbHodlWaveChart isThumbnail />,
path: '/charts/ckb-hodl-wave',
},
]
: []),
{
title: `${t('statistic.balance_ranking')}`,
chart: <AddressBalanceRankChart isThumbnail />,
Expand Down

0 comments on commit 8a95a00

Please sign in to comment.