This commit is contained in:
Philip Cheung 2024-10-11 11:25:10 +08:00
parent 5b6161a0b2
commit 04beef3670
2 changed files with 10 additions and 10 deletions

View File

@ -11,7 +11,7 @@ import { FiEdit, FiTrash } from "react-icons/fi"
import type { ItemPublic, UserPublic, AboutUsPublic, CoursePublic, ImagePublic, SchedulePublic } from "../../client"
import EditUser from "../Admin/EditUser"
//import EditItem from "../Items/EditItem"
import EditItem from "../Items/EditItem"
import EditCourseImage from "../CourseImage/editCourseImage"
import EditAboutUs from "../AboutUs/EditAboutUs"
import EditSechedule from "../Courses/EditSechedule"
@ -42,14 +42,14 @@ const ActionsMenu = ({ type, value, disabled }: ActionsMenuProps) => {
onClose={editUserModal.onClose}
/>
)
// case 'Item':
// return (
// <EditItem
// item={value as ItemPublic}
// isOpen={editUserModal.isOpen}
// onClose={editUserModal.onClose}
// />
// )
case 'Item':
return (
<EditItem
item={value as ItemPublic}
isOpen={editUserModal.isOpen}
onClose={editUserModal.onClose}
/>
)
case 'AboutUs':
return (
<EditAboutUs

View File

@ -7,7 +7,7 @@ import type { UserPublic } from "../../client"
const items = [
{ icon: FiHome, title: "Dashboard", path: "/" },
{ icon: FiBriefcase, title: "Items", path: "/items" },
// { icon: FiBriefcase, title: "Items", path: "/items" },
{ icon: FiBook, title: "Courses", path: "/Courses/courses" },
{ icon: FiMessageSquare, title: "Messages", path: "/clientMessages" },
{ icon: FiAlignLeft, title: "About Us", path: "/aboutUs" },