fix: useTeacherQuizsetDetail 훅 이름 수정

This commit is contained in:
jhynsoo 2024-08-06 17:56:23 +09:00
parent 37e7ba40f8
commit e07f97fd83

View File

@ -1,4 +1,4 @@
import { useQuizsetDetail } from '../../hooks/api/useTeacherQuizsetDetail';
import { useTeacherQuizsetDetail } from '../../hooks/api/useTeacherQuizsetDetail';
import { useParams, useNavigate } from 'react-router-dom';
import { QuizsetDetail } from '../../components/QuizsetDetail';
import { useQuizsetDelete } from '../../hooks/api/useQuizsetDelete';
@ -7,7 +7,7 @@ export default function QuizsetDetailPage() {
const navigate = useNavigate();
const { quizsetId } = useParams();
const { quizsetDelete } = useQuizsetDelete();
const { data } = useQuizsetDetail(quizsetId);
const { data } = useTeacherQuizsetDetail(quizsetId);
const quizset = data.data;
console.log(quizset);
const handleEdit = () => {