forked from w3f-webops/polkadot-staking-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pages.ts
77 lines (74 loc) · 1.54 KB
/
pages.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Copyright 2023 @paritytech/polkadot-staking-dashboard authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
import { Community } from 'pages/Community';
import { Nominate } from 'pages/Nominate';
import { Overview } from 'pages/Overview';
import { Payouts } from 'pages/Payouts';
import { Pools } from 'pages/Pools';
import { Validators } from 'pages/Validators';
import type { PageCategoryItems, PagesConfigItems } from 'types';
const BASE_URL = import.meta.env.BASE_URL;
export const PageCategories: PageCategoryItems = [
{
id: 1,
key: 'default',
},
{
id: 2,
key: 'stake',
},
{
id: 3,
key: 'validators',
},
];
export const PagesConfig: PagesConfigItems = [
{
category: 1,
key: 'overview',
uri: `${BASE_URL}`,
hash: '/overview',
Entry: Overview,
lottie: 'globe',
},
{
category: 2,
key: 'pools',
uri: `${BASE_URL}pools`,
hash: '/pools',
Entry: Pools,
lottie: 'groups',
},
{
category: 2,
key: 'nominate',
uri: `${BASE_URL}nominate`,
hash: '/nominate',
Entry: Nominate,
lottie: 'trending',
},
{
category: 2,
key: 'payouts',
uri: `${BASE_URL}payouts`,
hash: '/payouts',
Entry: Payouts,
lottie: 'analytics',
},
{
category: 3,
key: 'validators',
uri: `${BASE_URL}validators`,
hash: '/validators',
Entry: Validators,
lottie: 'view',
},
{
category: 3,
key: 'community',
uri: `${BASE_URL}community`,
hash: '/community',
Entry: Community,
lottie: 'label',
},
];