refactor: 불필요한 주석 제거
This commit is contained in:
parent
31d847b387
commit
9b5aebf82b
@ -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;
|
||||
|
@ -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',
|
||||
|
@ -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();
|
||||
|
@ -1,5 +1,3 @@
|
||||
// userType : null, 'teacher', 'student'
|
||||
|
||||
export const userTypeSlice = (set) => ({
|
||||
userType: null,
|
||||
setUserType: (userType) => set({ userType }),
|
||||
|
Loading…
Reference in New Issue
Block a user