File tree Expand file tree Collapse file tree
app/pages/ParatimeDashboardPage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,14 +7,13 @@ import { Link as RouterLink } from 'react-router-dom'
77import Link from '@mui/material/Link'
88import { Layer , useGetRuntimeTransactions } from '../../../oasis-nexus/api'
99import { RuntimeTransactions } from '../../components/Transactions'
10- import { NUMBER_OF_ITEMS_ON_DASHBOARD } from '../../config'
1110import { COLORS } from '../../../styles/theme/colors'
1211import { AppErrors } from '../../../types/errors'
1312import { RouteUtils } from '../../utils/route-utils'
1413import { useScreenSize } from '../../hooks/useScreensize'
1514import { SearchScope } from '../../../types/searchScope'
1615
17- const limit = NUMBER_OF_ITEMS_ON_DASHBOARD
16+ const limit = 15 // NUMBER_OF_ITEMS_ON_DASHBOARD
1817
1918export const LatestRuntimeTransactions : FC < { scope : SearchScope } > = ( { scope } ) => {
2019 const { isTablet } = useScreenSize ( )
Original file line number Diff line number Diff line change @@ -12,11 +12,14 @@ import { PageLayout } from '../../components/PageLayout'
1212import { ParaTimeSnapshot } from './ParaTimeSnapshot'
1313import { TopTokens } from './TopTokens'
1414import { useRequiredScopeParam } from '../../hooks/useScopeParam'
15+ import { paraTimesConfig } from '../../../config'
1516
1617export const ParatimeDashboardPage : FC = ( ) => {
1718 const { isMobile } = useScreenSize ( )
1819 const scope = useRequiredScopeParam ( )
1920
21+ const { hideTokensFromDashboard } = paraTimesConfig [ scope . layer ] !
22+
2023 return (
2124 < PageLayout >
2225 < ParaTimeSnapshot scope = { scope } />
@@ -35,7 +38,7 @@ export const ParatimeDashboardPage: FC = () => {
3538 </ Grid >
3639 ) }
3740 </ Grid >
38- { ! isMobile && < TopTokens scope = { scope } /> }
41+ { ! hideTokensFromDashboard && ! isMobile && < TopTokens scope = { scope } /> }
3942 < TransactionsStats scope = { scope } />
4043 < TotalTransactions scope = { scope } />
4144 < Social />
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ type LayerConfig = {
3838 * Specified in milliseconds.
3939 */
4040 outOfDateThreshold : number
41+
42+ hideTokensFromDashboard ?: boolean
4143}
4244
4345export enum RuntimeTypes {
@@ -148,6 +150,7 @@ const pontusxConfig: LayerConfig = {
148150 decimals : 18 ,
149151 type : RuntimeTypes . Evm ,
150152 outOfDateThreshold : 2 * 60 * 1000 ,
153+ hideTokensFromDashboard : true ,
151154}
152155
153156type LayersConfig = {
You can’t perform that action at this time.
0 commit comments