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

View File

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