File tree Expand file tree Collapse file tree 1 file changed +43
-32
lines changed
apps/namadillo/src/App/Common Expand file tree Collapse file tree 1 file changed +43
-32
lines changed Original file line number Diff line number Diff line change @@ -6,46 +6,57 @@ import { BsDiscord, BsTwitterX } from "react-icons/bs";
6
6
import { FaVoteYea } from "react-icons/fa" ;
7
7
import { GoStack } from "react-icons/go" ;
8
8
import { IoSwapHorizontal } from "react-icons/io5" ;
9
+ import { TbVectorTriangle } from "react-icons/tb" ;
9
10
import { DISCORD_URL , TWITTER_URL } from "urls" ;
10
11
11
12
import StakingRoutes from "App/Staking/routes" ;
12
13
13
14
export const Navigation = ( ) : JSX . Element => {
15
+ const menuItems : { label : string ; icon : React . ReactNode ; url ?: string } [ ] = [
16
+ {
17
+ label : "Overview" ,
18
+ icon : < AiFillHome /> ,
19
+ url : "/" ,
20
+ } ,
21
+ {
22
+ label : "Staking" ,
23
+ icon : < GoStack /> ,
24
+ url : StakingRoutes . index ( ) ,
25
+ } ,
26
+ {
27
+ label : "Governance" ,
28
+ icon : < FaVoteYea /> ,
29
+ url : GovernanceRoutes . index ( ) ,
30
+ } ,
31
+ {
32
+ label : "MASP" ,
33
+ icon : (
34
+ < i className = "w-4" >
35
+ < MASPIcon />
36
+ </ i >
37
+ ) ,
38
+ } ,
39
+ {
40
+ label : "IBC Transfer" ,
41
+ icon : < TbVectorTriangle /> ,
42
+ } ,
43
+ {
44
+ label : "Transfer" ,
45
+ icon : < IoSwapHorizontal /> ,
46
+ } ,
47
+ ] ;
48
+
14
49
return (
15
50
< div className = "h-full flex flex-col justify-between flex-1 pt-6 pb-8 px-6" >
16
51
< ul className = "flex flex-col gap-4" >
17
- < li >
18
- < SidebarMenuItem url = { "/" } >
19
- < AiFillHome />
20
- Overview
21
- </ SidebarMenuItem >
22
- </ li >
23
- < li >
24
- < SidebarMenuItem url = { StakingRoutes . index ( ) } >
25
- < GoStack />
26
- Staking
27
- </ SidebarMenuItem >
28
- </ li >
29
- < li >
30
- < SidebarMenuItem url = { GovernanceRoutes . index ( ) } >
31
- < FaVoteYea />
32
- Governance
33
- </ SidebarMenuItem >
34
- </ li >
35
- < li >
36
- < SidebarMenuItem >
37
- < IoSwapHorizontal />
38
- IBC Transfer
39
- </ SidebarMenuItem >
40
- </ li >
41
- < li >
42
- < SidebarMenuItem >
43
- < i className = "w-4" >
44
- < MASPIcon />
45
- </ i >
46
- MASP
47
- </ SidebarMenuItem >
48
- </ li >
52
+ { menuItems . map ( ( item ) => (
53
+ < li key = { item . label } >
54
+ < SidebarMenuItem url = { item . url } >
55
+ { item . icon }
56
+ { item . label }
57
+ </ SidebarMenuItem >
58
+ </ li >
59
+ ) ) }
49
60
</ ul >
50
61
< footer className = "flex flex-col gap-10" >
51
62
< ul className = "flex flex-col gap-1 text-neutral-300 text-sm" >
You can’t perform that action at this time.
0 commit comments