@@ -37,7 +37,7 @@ const AdminList: FC = () => {
|
||||
<Button className="w-fit px-6">
|
||||
<div className="flex gap-1.5">
|
||||
<AddSquare size={18} color="black" />
|
||||
<div className="text-[13px] font-light">ادمین جدید</div>
|
||||
<div className="text-[13px] font-light">کاربر جدید</div>
|
||||
</div>
|
||||
</Button>
|
||||
</Link>
|
||||
|
||||
@@ -22,7 +22,7 @@ export type WeeklyOrdersPoint = {
|
||||
};
|
||||
|
||||
export const getDashboardCounts = async (): Promise<BaseResponse<DashboardCountsType>> => {
|
||||
const { data } = await axios.get<BaseResponse<DashboardCountsType>>('/admin/dashboard/counts');
|
||||
const { data } = await axios.get<BaseResponse<DashboardCountsType>>('/admin/menu/counts');
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
@@ -106,9 +106,6 @@ const SideBar: FC = () => {
|
||||
/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<SideBarItem
|
||||
icon={<People size={iconSizeSideBar} color="#4F5260" />}
|
||||
title={'مشتریان'}
|
||||
@@ -127,7 +124,7 @@ const SideBar: FC = () => {
|
||||
|
||||
<SideBarItem
|
||||
icon={<User size={iconSizeSideBar} color="#4F5260" />}
|
||||
title={'مدیران'}
|
||||
title={'کاربران'}
|
||||
isActive={isActive('admin')}
|
||||
link={Paths.admin.list}
|
||||
activeName='manage_admins'
|
||||
|
||||
Reference in New Issue
Block a user