From 74fec3d2be2607e42c512bf23869313abf1099b9 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Thu, 23 Jul 2026 19:40:08 +0330 Subject: [PATCH] side bar --- src/pages/admin/List.tsx | 2 +- src/pages/dashboard/service/DashboardService.ts | 2 +- src/shared/Sidebar.tsx | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/pages/admin/List.tsx b/src/pages/admin/List.tsx index 4f6e521..b46de78 100644 --- a/src/pages/admin/List.tsx +++ b/src/pages/admin/List.tsx @@ -37,7 +37,7 @@ const AdminList: FC = () => { diff --git a/src/pages/dashboard/service/DashboardService.ts b/src/pages/dashboard/service/DashboardService.ts index 1403102..14ab25a 100644 --- a/src/pages/dashboard/service/DashboardService.ts +++ b/src/pages/dashboard/service/DashboardService.ts @@ -22,7 +22,7 @@ export type WeeklyOrdersPoint = { }; export const getDashboardCounts = async (): Promise> => { - const { data } = await axios.get>('/admin/dashboard/counts'); + const { data } = await axios.get>('/admin/menu/counts'); return data; }; diff --git a/src/shared/Sidebar.tsx b/src/shared/Sidebar.tsx index 74eb713..ded8dad 100644 --- a/src/shared/Sidebar.tsx +++ b/src/shared/Sidebar.tsx @@ -106,9 +106,6 @@ const SideBar: FC = () => { /> - - - } title={'مشتریان'} @@ -127,7 +124,7 @@ const SideBar: FC = () => { } - title={'مدیران'} + title={'کاربران'} isActive={isActive('admin')} link={Paths.admin.list} activeName='manage_admins'