fixed
This commit is contained in:
parent
5b6161a0b2
commit
04beef3670
|
@ -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
|
||||
|
|
|
@ -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" },
|
||||
|
|
Loading…
Reference in New Issue