fix import module on Mentor Admin Page
This commit is contained in:
@@ -3,7 +3,7 @@ import { useNavigate } from "react-router-dom";
|
|||||||
import NavbarAdmin from "../Layout/NavbarAdmin";
|
import NavbarAdmin from "../Layout/NavbarAdmin";
|
||||||
import SidebarAdmin from "../Layout/SidebarAdmin";
|
import SidebarAdmin from "../Layout/SidebarAdmin";
|
||||||
import { useCreateMentor } from "../hooks/useMentors";
|
import { useCreateMentor } from "../hooks/useMentors";
|
||||||
import type { CreateMentorPayload } from "../services/MentorServices";
|
import type { CreateMentorPayload } from "../types/user.types";
|
||||||
|
|
||||||
const CreateMentorForm = () => {
|
const CreateMentorForm = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ import { useNavigate, useParams } from "react-router-dom";
|
|||||||
import NavbarAdmin from "../Layout/NavbarAdmin";
|
import NavbarAdmin from "../Layout/NavbarAdmin";
|
||||||
import SidebarAdmin from "../Layout/SidebarAdmin";
|
import SidebarAdmin from "../Layout/SidebarAdmin";
|
||||||
import { useMentorDetail, useUpdateMentor } from "../hooks/useMentors";
|
import { useMentorDetail, useUpdateMentor } from "../hooks/useMentors";
|
||||||
import type { UpdateMentorPayload } from "../services/MentorServices";
|
import type { UpdateMentorPayload } from "../types/user.types";
|
||||||
|
|
||||||
const EditMentorForm = () => {
|
const EditMentorForm = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { id } = useParams<{ id: string }>();
|
const { id } = useParams<{ id: string }>();
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const MentorPage = () => {
|
|||||||
alert("Mentor berhasil dihapus!");
|
alert("Mentor berhasil dihapus!");
|
||||||
refetch();
|
refetch();
|
||||||
} else {
|
} else {
|
||||||
alert("Gagal menghapus mentor. Silakan coba lagi.");
|
alert("Gagal menghapus mentor");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user