diff --git a/src/components/layout/Sidebar/sidebar.jsx b/src/components/layout/Sidebar/sidebar.jsx index 9b57ce3..5d21f75 100644 --- a/src/components/layout/Sidebar/sidebar.jsx +++ b/src/components/layout/Sidebar/sidebar.jsx @@ -23,6 +23,12 @@ const SIDEBAR = { icon: PiCoffee, label: 'مدیریت کافه ها', }, + { + id: 'users-management', + path: '/users-management', + icon: PiCoffee, + label: 'مدیریت کاربران', + }, { id: 'stats', path: '/stats', diff --git a/src/components/layout/layout.jsx b/src/components/layout/layout.jsx index d92c474..cb420e6 100644 --- a/src/components/layout/layout.jsx +++ b/src/components/layout/layout.jsx @@ -7,11 +7,14 @@ import toggleTheme from "../ToggleTheme"; import { CgDarkMode } from "react-icons/cg"; const HEADER_PATHS = [ - { route: "/cafe-management", title: "مدیریت کافه ها" }, - { route: "/dashboard", title: "داشبورد" }, - { route: "/stats", title: "آمار و تحلیل" }, - { route: "/edit-cafe/", title: "ویرایش کافه" }, - + "/management", + "/management/", + "/management/cafes", + "/edit-cafe", + "/edit-cafe/", + "/cafe", + "/cafes", + "/admin", ]; export default function Layout() { diff --git a/src/pages/CafeManagement/CafeManagement.jsx b/src/pages/CafeManagement/CafeManagement.jsx index c8b62eb..a3791a5 100644 --- a/src/pages/CafeManagement/CafeManagement.jsx +++ b/src/pages/CafeManagement/CafeManagement.jsx @@ -68,82 +68,65 @@ const CafeManagement = () => { ); } - return ( - <> - {/* جدول دسکتاپ */} -
| - لوگو - | -- اسم - | -- آدرس - | -- ریتینگ - | -- ساعت کاری - | -- ادیت - | -
|---|---|---|---|---|---|
|
- |
- - {cafe.Name} - | -- {cafe.address} - | -
-
-
- |
-
-
-
- |
-
-
- ادیت
- |
-
| لوگو | +اسم | +آدرس | +ریتینگ | +ساعت کاری | +ادیت | +
|---|---|---|---|---|---|
|
+ |
+ + {cafe.Name} + | ++ {cafe.address} + | +
+
+
+ |
+
+
+
+ |
+
+
+ ادیت
+ |
+
پربازدیدترین کافهها
*/} + +محبوبترین کافهها
*/} + +آمار بازدید کنندهها
+ return ( +