-
Notifications
You must be signed in to change notification settings - Fork 819
/
nav-options.ts
112 lines (104 loc) · 2.41 KB
/
nav-options.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Copyright (c) 2022 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at https://mozilla.org/MPL/2.0/.
// Types
import { NavOption, WalletRoutes } from '../constants/types'
export const BuySendSwapDepositOptions: NavOption[] = [
{
id: 'buy',
name: 'braveWalletBuy',
icon: 'coins-alt1',
route: WalletRoutes.FundWalletPageStart
},
{
id: 'send',
name: 'braveWalletSend',
icon: 'send',
route: WalletRoutes.SendPageStart
},
{
id: 'swap',
name: 'braveWalletSwap',
icon: 'currency-exchange',
route: WalletRoutes.Swap
},
{
id: 'deposit',
name: 'braveWalletDepositCryptoButton',
icon: 'money-bag-coins',
route: WalletRoutes.DepositFundsPageStart
}
]
const ActivityNavOption: NavOption = {
id: 'activity',
name: 'braveWalletActivity',
icon: 'activity',
route: WalletRoutes.Activity
}
// We can remove this once we go live with Panel 2.0
export const PanelNavOptionsOld: NavOption[] = [
...BuySendSwapDepositOptions,
ActivityNavOption
]
export const PanelNavOptions: NavOption[] = [
{
id: 'portfolio',
name: 'braveWalletTopNavPortfolio',
icon: 'coins',
route: WalletRoutes.Portfolio
},
ActivityNavOption,
{
id: 'accounts',
name: 'braveWalletTopNavAccounts',
icon: 'user-accounts',
route: WalletRoutes.Accounts
},
{
id: 'market',
name: 'braveWalletTopNavMarket',
icon: 'discover',
route: WalletRoutes.Market
}
]
export const NavOptions: NavOption[] = [
{
id: 'portfolio',
name: 'braveWalletTopNavPortfolio',
icon: 'coins',
route: WalletRoutes.Portfolio
},
ActivityNavOption,
{
id: 'accounts',
name: 'braveWalletTopNavAccounts',
icon: 'user-accounts',
route: WalletRoutes.Accounts
},
{
id: 'market',
name: 'braveWalletTopNavMarket',
icon: 'discover',
route: WalletRoutes.Market
}
]
export const AllNavOptions: NavOption[] = [
...NavOptions,
...BuySendSwapDepositOptions,
ActivityNavOption
]
export const PortfolioNavOptions: NavOption[] = [
{
id: 'assets',
name: 'braveWalletAccountsAssets',
icon: 'coins',
route: WalletRoutes.PortfolioAssets
},
{
id: 'nfts',
name: 'braveWalletTopNavNFTS',
icon: 'grid04',
route: WalletRoutes.PortfolioNFTs
},
]