refactor: 불필요한 주석 제거

This commit is contained in:
jhynsoo 2024-08-12 00:03:02 +09:00
parent 31d847b387
commit 9b5aebf82b
4 changed files with 0 additions and 5 deletions

View File

@ -14,7 +14,6 @@ export default function LectureForm({ title, topic, to = '..', initialValues = {
const timeRef = useRef('');
const imageFileRef = useRef(null);
//
useEffect(() => {
if (initialValues.title) titleRef.current.value = initialValues.title;
if (initialValues.description) descriptionRef.current.value = initialValues.description;

View File

@ -3,7 +3,6 @@ import { API_URL } from '../../constants';
export function useLectureCreate() {
const lectureCreate = (formData) => {
// return instance.post(`${API_URL}/lecture`, lectureObject, image);
return instance.post(`${API_URL}/lecture`, formData, {
headers: {
'Content-type': 'multipart/form-data',

View File

@ -2,7 +2,6 @@ import { ArticleLink } from '../../components/ArticleLink';
import ArticleBoard from '../../components/ArticleBoard/ArticleBoard';
import { useQuizsets } from '../../hooks/api/useQuizsets';
import { useParams } from 'react-router-dom';
// import useBoundStore from '../../store';
export default function QuizsetListPage() {
const { lectureId } = useParams();

View File

@ -1,5 +1,3 @@
// userType : null, 'teacher', 'student'
export const userTypeSlice = (set) => ({
userType: null,
setUserType: (userType) => set({ userType }),