Commit 3df4bd4f authored by isstuev's avatar isstuev

add links to charts

parent c27b97a2
...@@ -46,7 +46,7 @@ const TxsStats = () => { ...@@ -46,7 +46,7 @@ const TxsStats = () => {
value={ Number(txsStatsQuery.data?.transactions_count_24h).toLocaleString() } value={ Number(txsStatsQuery.data?.transactions_count_24h).toLocaleString() }
period="24h" period="24h"
isLoading={ txsStatsQuery.isPlaceholderData } isLoading={ txsStatsQuery.isPlaceholderData }
href={ config.features.stats.isEnabled ? { pathname: '/stats', query: { chartId: 'newTxns' } } : undefined } href={ config.features.stats.isEnabled ? { pathname: '/stats/[id]', query: { id: 'newTxns' } } : undefined }
/> />
<StatsWidget <StatsWidget
label="Pending transactions" label="Pending transactions"
...@@ -63,7 +63,7 @@ const TxsStats = () => { ...@@ -63,7 +63,7 @@ const TxsStats = () => {
valuePostfix={ thinsp + config.chain.currency.symbol } valuePostfix={ thinsp + config.chain.currency.symbol }
period="24h" period="24h"
isLoading={ txsStatsQuery.isPlaceholderData } isLoading={ txsStatsQuery.isPlaceholderData }
href={ config.features.stats.isEnabled ? { pathname: '/stats', query: { chartId: 'txnsFee' } } : undefined } href={ config.features.stats.isEnabled ? { pathname: '/stats/[id]', query: { id: 'txnsFee' } } : undefined }
/> />
<StatsWidget <StatsWidget
label="Avg. transaction fee" label="Avg. transaction fee"
...@@ -72,7 +72,7 @@ const TxsStats = () => { ...@@ -72,7 +72,7 @@ const TxsStats = () => {
valuePostfix={ txFeeAvg.usd ? undefined : thinsp + config.chain.currency.symbol } valuePostfix={ txFeeAvg.usd ? undefined : thinsp + config.chain.currency.symbol }
period="24h" period="24h"
isLoading={ txsStatsQuery.isPlaceholderData } isLoading={ txsStatsQuery.isPlaceholderData }
href={ config.features.stats.isEnabled ? { pathname: '/stats', query: { chartId: 'averageTxnFee' } } : undefined } href={ config.features.stats.isEnabled ? { pathname: '/stats/[id]', query: { id: 'averageTxnFee' } } : undefined }
/> />
</Box> </Box>
); );
......
...@@ -25,7 +25,8 @@ const VerifiedContractsCounters = () => { ...@@ -25,7 +25,8 @@ const VerifiedContractsCounters = () => {
diff={ countersQuery.data.new_smart_contracts_24h } diff={ countersQuery.data.new_smart_contracts_24h }
diffFormatted={ Number(countersQuery.data.new_smart_contracts_24h).toLocaleString() } diffFormatted={ Number(countersQuery.data.new_smart_contracts_24h).toLocaleString() }
isLoading={ countersQuery.isPlaceholderData } isLoading={ countersQuery.isPlaceholderData }
href={ config.features.stats.isEnabled ? { pathname: '/stats', query: { chartId: 'contractsGrowth' } } : undefined } // there is no stats for contracts growth for now
// href={ config.features.stats.isEnabled ? { pathname: '/stats/[id]', query: { id: 'contractsGrowth' } } : undefined }
/> />
<StatsWidget <StatsWidget
label="Verified contracts" label="Verified contracts"
...@@ -33,7 +34,7 @@ const VerifiedContractsCounters = () => { ...@@ -33,7 +34,7 @@ const VerifiedContractsCounters = () => {
diff={ countersQuery.data.new_verified_smart_contracts_24h } diff={ countersQuery.data.new_verified_smart_contracts_24h }
diffFormatted={ Number(countersQuery.data.new_verified_smart_contracts_24h).toLocaleString() } diffFormatted={ Number(countersQuery.data.new_verified_smart_contracts_24h).toLocaleString() }
isLoading={ countersQuery.isPlaceholderData } isLoading={ countersQuery.isPlaceholderData }
href={ config.features.stats.isEnabled ? { pathname: '/stats', query: { chartId: 'verifiedContractsGrowth' } } : undefined } href={ config.features.stats.isEnabled ? { pathname: '/stats/[id]', query: { id: 'verifiedContractsGrowth' } } : undefined }
/> />
</Box> </Box>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment