refactor(sidebar): re arrange sidebar links 🔨

This commit is contained in:
2025-09-20 11:14:38 +05:00
parent 6c5f848856
commit 1e2329e7f1

View File

@@ -69,7 +69,13 @@ export async function AppSidebar({
icon: <Smartphone size={16} />, icon: <Smartphone size={16} />,
}, },
{ {
title: "Payments", title: "Parental Control",
link: "/parental-control?page=1",
icon: <CreditCard size={16} />,
perm_identifier: "device",
},
{
title: "Subscriptions",
link: "/payments?page=1", link: "/payments?page=1",
icon: <CreditCard size={16} />, icon: <CreditCard size={16} />,
perm_identifier: "payment", perm_identifier: "payment",
@@ -81,10 +87,10 @@ export async function AppSidebar({
perm_identifier: "topup", perm_identifier: "topup",
}, },
{ {
title: "Parental Control", title: "Transaction History",
link: "/parental-control?page=1", link: "/wallet",
icon: <CreditCard size={16} />, icon: <Wallet2Icon size={16} />,
perm_identifier: "device", perm_identifier: "wallet transaction",
}, },
{ {
title: "Agreements", title: "Agreements",
@@ -92,12 +98,6 @@ export async function AppSidebar({
icon: <Handshake size={16} />, icon: <Handshake size={16} />,
perm_identifier: "device", perm_identifier: "device",
}, },
{
title: "Wallet",
link: "/wallet",
icon: <Wallet2Icon size={16} />,
perm_identifier: "wallet transaction",
},
], ],
}, },
{ {
@@ -203,7 +203,9 @@ export async function AppSidebar({
<SidebarMenuButton className="py-6" asChild> <SidebarMenuButton className="py-6" asChild>
<Link className="text-md" href={item.link}> <Link className="text-md" href={item.link}>
{item.icon} {item.icon}
<span className="opacity-70 ml-2"> <span
className={`opacity-70 motion-preset-slide-left-md ml-2`}
>
{item.title} {item.title}
</span> </span>
</Link> </Link>