translation added

This commit is contained in:
Samandar Turgunboyev
2025-11-06 10:38:52 +05:00
parent b3401085c7
commit 08ed9f7f19
8 changed files with 122 additions and 24 deletions

View File

@@ -106,7 +106,7 @@ const MENU_ITEMS = [
path: "/faq",
roles: ["moderator", "admin", "superuser"],
children: [
{ label: "Savollar royxati", path: "/faq" },
{ label: "Savollar ro'yxati", path: "/faq" },
{ label: "Savollar kategoriyasi", path: "/faq/categories" },
],
},
@@ -149,7 +149,7 @@ const MENU_ITEMS = [
],
},
{
label: "Pul olish sorovlari",
label: "Pul olish so'rovlari",
icon: Wallet,
path: "/withdraw/list",
roles: ["buxgalter", "moderator", "tour_admin"],
@@ -204,8 +204,8 @@ export function Sidebar({ role }: SidebarProps) {
};
const MenuList = (
<div className="flex flex-col h-full justify-between">
<ul className="p-2 space-y-1 flex-1 overflow-y-auto">
<div className="flex flex-col h-full">
<ul className="p-2 space-y-1 flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-800 hover:scrollbar-thumb-gray-500">
{visibleMenu.map(({ label, icon: Icon, path, children }) => {
const isActive = active.startsWith(path);
const isOpen = openMenus.includes(label);
@@ -281,7 +281,7 @@ export function Sidebar({ role }: SidebarProps) {
);
return (
<div className="lg:border fixed max-lg:sticky">
<div className="lg:border fixed max-lg:sticky overflow-y-auto sidebar-scroll">
{/* Mobil versiya */}
<div className="lg:hidden flex items-center justify-end bg-gray-900 p-4 sticky top-0 z-50">
<Sheet open={isSheetOpen} onOpenChange={setIsSheetOpen}>