From 06c46fbf76a24c105e3b82b11eb8a070ccb29fe0 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Mon, 22 Jul 2024 12:43:58 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EC=A3=BC=EC=84=9D=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/api/useNotices.js | 1 + .../pages/LectureInfoPage/LectureInfoPage.jsx | 24 ------------------- .../pages/NoticeListPage/NoticeListPage.jsx | 2 -- 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/frontend/src/hooks/api/useNotices.js b/frontend/src/hooks/api/useNotices.js index 5792132..72c14d8 100644 --- a/frontend/src/hooks/api/useNotices.js +++ b/frontend/src/hooks/api/useNotices.js @@ -3,6 +3,7 @@ import instance from '../../utils/axios/instance'; import { API_URL } from '../../constants'; export function useNotices(lectureId) { + // TODO: API url 업데이트 const response = useQuery({ queryKey: ['noticelist', lectureId], queryFn: instance.get(`${API_URL}/notice/${lectureId}`), diff --git a/frontend/src/pages/LectureInfoPage/LectureInfoPage.jsx b/frontend/src/pages/LectureInfoPage/LectureInfoPage.jsx index eee0342..28f815e 100644 --- a/frontend/src/pages/LectureInfoPage/LectureInfoPage.jsx +++ b/frontend/src/pages/LectureInfoPage/LectureInfoPage.jsx @@ -30,30 +30,6 @@ export default function LectureInfoPage() { }, }; - // const lectureData = { - // title: '정보처리기사 실기 완전정복', - // img: '', - // tutor: '이재용', - // tutorImg: '', - // term: '2021.07.01 ~ 2021.12.31', - // time: '매주 화, 목 19:00 ~ 21:00', - // description: [ - // { - // title: '수업소개', - // content: '이 코스는 정보처리기사 실기에 대한 완전정복을 목표로 합니다.', - // }, - // { - // title: '커리큘럼', - // content: - // '1. 데이터베이스\n2. 소프트웨어 공학\n3. 운영체제\n4. 네트워크\n5. 데이터통신\n6. 전자계산기\n7. 알고리즘\n8. 프로그래밍 언어\n9. 시스템 소프트웨어\n10. 정보시스템 개발 관리', - // }, - // { - // title: '이런 사람이 들으면 좋아요', - // content: '정보처리기사 실기에 관심이 많은 사람', - // }, - // ], - // }; - return ( <>