Skip to content

Commit 320aa58

Browse files
committed
Hide the token card from the Pontus-X dashboard
1 parent 4c8a8ae commit 320aa58

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/app/pages/ParatimeDashboardPage/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ import { PageLayout } from '../../components/PageLayout'
1212
import { ParaTimeSnapshot } from './ParaTimeSnapshot'
1313
import { TopTokens } from './TopTokens'
1414
import { useRequiredScopeParam } from '../../hooks/useScopeParam'
15+
import { paraTimesConfig } from '../../../config'
1516

1617
export 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 />

src/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ type LayerConfig = {
3232
* Specified in milliseconds.
3333
*/
3434
outOfDateThreshold: number
35+
36+
hideTokensFromDashboard?: boolean
3537
}
3638

3739
export 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

146149
type LayersConfig = {

0 commit comments

Comments
 (0)