Skip to content

Commit 3741648

Browse files
committed
fix: make sidebar menu items match latest designs (#1106)
1 parent 9856bb9 commit 3741648

File tree

1 file changed

+43
-32
lines changed

1 file changed

+43
-32
lines changed

apps/namadillo/src/App/Common/Navigation.tsx

Lines changed: 43 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,57 @@ import { BsDiscord, BsTwitterX } from "react-icons/bs";
66
import { FaVoteYea } from "react-icons/fa";
77
import { GoStack } from "react-icons/go";
88
import { IoSwapHorizontal } from "react-icons/io5";
9+
import { TbVectorTriangle } from "react-icons/tb";
910
import { DISCORD_URL, TWITTER_URL } from "urls";
1011

1112
import StakingRoutes from "App/Staking/routes";
1213

1314
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+
1449
return (
1550
<div className="h-full flex flex-col justify-between flex-1 pt-6 pb-8 px-6">
1651
<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+
))}
4960
</ul>
5061
<footer className="flex flex-col gap-10">
5162
<ul className="flex flex-col gap-1 text-neutral-300 text-sm">

0 commit comments

Comments
 (0)