Skip to content

Commit 4ac55e2

Browse files
authored
fix: Side Menu v2 (#2337)
1 parent d8c6ea3 commit 4ac55e2

File tree

1 file changed

+19
-32
lines changed

1 file changed

+19
-32
lines changed

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

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ export const Navigation = (): JSX.Element => {
2323
icon: <AiFillHome />,
2424
url: routes.root,
2525
},
26-
{
27-
label: "Staking",
28-
icon: <GoStack />,
29-
url: routes.staking,
30-
},
31-
{
32-
label: "Governance",
33-
icon: <FaVoteYea />,
34-
url: routes.governance,
35-
},
3626
{
3727
label: "Shield",
3828
icon: <ShieldIcon />,
@@ -52,10 +42,20 @@ export const Navigation = (): JSX.Element => {
5242
url: routes.receive,
5343
},
5444
{
55-
label: "Shielded Swaps",
45+
label: "Swap",
5646
icon: <SwapIcon className="w-[18px]" />,
5747
url: routes.swap,
5848
},
49+
{
50+
label: "Staking",
51+
icon: <GoStack />,
52+
url: routes.staking,
53+
},
54+
{
55+
label: "Governance",
56+
icon: <FaVoteYea />,
57+
url: routes.governance,
58+
},
5959
{
6060
label: "History",
6161
icon: <GoHistory />,
@@ -69,27 +69,14 @@ export const Navigation = (): JSX.Element => {
6969
return (
7070
<div className="min-h-full flex flex-col justify-between gap-10 p-6 pb-8">
7171
<ul className="flex flex-col gap-4">
72-
{menuItems.map((item) => {
73-
const shieldingRoute = item.label === "Shield";
74-
const historyRoute = item.label === "History";
75-
return (
76-
<li key={item.label}>
77-
{shieldingRoute && (
78-
<>
79-
<hr className="border-neutral-300 border-t-1 w-full mb-2" />
80-
<h5 className="text-neutral-500 text-xs mb-2">Move Assets</h5>
81-
</>
82-
)}
83-
<SidebarMenuItem url={item.url}>
84-
{item.icon}
85-
{item.label}
86-
</SidebarMenuItem>
87-
{historyRoute && (
88-
<hr className="border-neutral-300 border-t-1 w-full mt-3" />
89-
)}
90-
</li>
91-
);
92-
})}
72+
{menuItems.map((item) => (
73+
<li key={item.label}>
74+
<SidebarMenuItem url={item.url}>
75+
{item.icon}
76+
{item.label}
77+
</SidebarMenuItem>
78+
</li>
79+
))}
9380
</ul>
9481
<footer className="flex flex-col gap-10">
9582
<ul className="flex flex-col gap-1 text-neutral-300 text-sm">

0 commit comments

Comments
 (0)