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'