File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
app/pages/ParatimeDashboardPage Expand file tree Collapse file tree 2 files changed +7
-1
lines changed 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 @@ -32,6 +32,8 @@ type LayerConfig = {
3232 * Specified in milliseconds.
3333 */
3434 outOfDateThreshold : number
35+
36+ hideTokensFromDashboard ?: boolean
3537}
3638
3739export enum RuntimeTypes {
@@ -141,6 +143,7 @@ const pontusxConfig: LayerConfig = {
141143 decimals : 18 ,
142144 type : RuntimeTypes . Evm ,
143145 outOfDateThreshold : 2 * 60 * 1000 ,
146+ hideTokensFromDashboard : true ,
144147}
145148
146149type LayersConfig = {
You can’t perform that action at this time.
0 commit comments