translation added
This commit is contained in:
@@ -106,7 +106,7 @@ const MENU_ITEMS = [
|
||||
path: "/faq",
|
||||
roles: ["moderator", "admin", "superuser"],
|
||||
children: [
|
||||
{ label: "Savollar ro‘yxati", path: "/faq" },
|
||||
{ label: "Savollar ro'yxati", path: "/faq" },
|
||||
{ label: "Savollar kategoriyasi", path: "/faq/categories" },
|
||||
],
|
||||
},
|
||||
@@ -149,7 +149,7 @@ const MENU_ITEMS = [
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Pul olish so‘rovlari",
|
||||
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}>
|
||||
|
||||
Reference in New Issue
Block a user