diff --git a/src/apis/apiClient.ts b/src/apis/apiClient.ts index 996eed5..399213c 100644 --- a/src/apis/apiClient.ts +++ b/src/apis/apiClient.ts @@ -238,7 +238,6 @@ export class ApiClient method: 'get', url: '/reservation/my/lessons', }); - console.log('신청클래스 싹다', response.data); return response.data; } @@ -271,7 +270,7 @@ export class ApiClient method: 'get', url: '/reservation/my/opened', }); - console.log(response); + return response.data; } @@ -283,8 +282,7 @@ export class ApiClient method: 'get', url: `/reservation/my/opened/${lesson_id}`, }); - console.log(lesson_id); - console.log(response); + return response.data; } @@ -301,7 +299,6 @@ export class ApiClient // 예약자 정보 async peopleList(lessondateId: PeopleListReqType) { - console.log('전달된 lessondate_id: ', lessondateId); const response = await this.axiosInstance.request< BaseResponseType >({ @@ -390,18 +387,15 @@ export class ApiClient return config; }, (error) => { - console.log(error); return Promise.reject(error); } ); newInstance.interceptors.response.use( (response) => { - console.log('dd', response); return response; }, (error) => { - console.log(error.response.status); if (error.response.status === 403) { alert('로그아웃되었습니다.'); removeCookie('token'); diff --git a/src/apis/imageApiClient.ts b/src/apis/imageApiClient.ts index 448cbe3..17c8fc6 100644 --- a/src/apis/imageApiClient.ts +++ b/src/apis/imageApiClient.ts @@ -12,7 +12,6 @@ export class ImageApiClient { // 이미지 업로드 async postLessonImg(formData: FormData) { - console.log('ddddfsdjf>>', formData); const response = await this.axiosImgInstance.request({ method: 'post', url: '/lesson/image-upload', @@ -55,7 +54,6 @@ export class ImageApiClient { return config; }, (error) => { - console.log(error); return Promise.reject(error); } ); diff --git a/src/components/molecules/Calculator.tsx b/src/components/molecules/Calculator.tsx index 209595f..916ed83 100644 --- a/src/components/molecules/Calculator.tsx +++ b/src/components/molecules/Calculator.tsx @@ -70,7 +70,6 @@ export const Calculator = ({ data, lessonId, year }: IProps) => { return response; }, onSuccess: async (response) => { - console.log('성공'); if (response.data) { setMaterialPrice(response.data.materialPrice); setRentalPrice(response.data.rentalPrice); @@ -83,9 +82,7 @@ export const Calculator = ({ data, lessonId, year }: IProps) => { queryClient.invalidateQueries({ queryKey: ['monthRevenue'] }); } }, - onError: async () => { - console.log('에러'); - }, + onError: async () => {}, }); const saveEditPrice = () => { diff --git a/src/components/molecules/MyCalendar.tsx b/src/components/molecules/MyCalendar.tsx index f158240..5c2b624 100644 --- a/src/components/molecules/MyCalendar.tsx +++ b/src/components/molecules/MyCalendar.tsx @@ -44,9 +44,7 @@ export const MyCalendar = ({ } }, [data]); - const handleOpenList = () => { - console.log(value); - }; + const handleOpenList = () => {}; useEffect(() => { onDateChange(new Date()); diff --git a/src/components/organisms/ApplicantList.tsx b/src/components/organisms/ApplicantList.tsx index 015cfeb..5066e11 100644 --- a/src/components/organisms/ApplicantList.tsx +++ b/src/components/organisms/ApplicantList.tsx @@ -4,7 +4,6 @@ interface IProps { } export const ApplicantList = ({ applicants }: IProps) => { - console.log('신청자list: ', applicants); return (
diff --git a/src/components/organisms/LessonSlider.tsx b/src/components/organisms/LessonSlider.tsx index 0657205..b74bf2f 100644 --- a/src/components/organisms/LessonSlider.tsx +++ b/src/components/organisms/LessonSlider.tsx @@ -29,7 +29,6 @@ export const LessonSlider = ({ data, show, option }: IProps) => { const cancelResponse = await ApiClient.getInstance().cancelLesson({ reservationId: reservationId, }); - console.log('cancleResponse', cancelResponse); if (cancelResponse.success) { openModal('예약이 취소되었습니다', () => navigate('/mypage/my-lesson-list') diff --git a/src/pages/mypage/HostLessonCalendar.tsx b/src/pages/mypage/HostLessonCalendar.tsx index 043be81..f67a4c9 100644 --- a/src/pages/mypage/HostLessonCalendar.tsx +++ b/src/pages/mypage/HostLessonCalendar.tsx @@ -58,7 +58,6 @@ export const HostLessonCalendar = () => { const handleLessonDetail = async (lessondateId: number) => { try { - console.log('Fetching applicants for lessondate_id:', lessondateId); const response = await ApiClient.getInstance().peopleList({ lessondateId: lessondateId, }); diff --git a/src/pages/mypage/LessonCalendar.tsx b/src/pages/mypage/LessonCalendar.tsx index ce37210..3fbd205 100644 --- a/src/pages/mypage/LessonCalendar.tsx +++ b/src/pages/mypage/LessonCalendar.tsx @@ -37,7 +37,6 @@ export const LessonCalendar = () => { month: month, }; const response = await ApiClient.getInstance().getMySchedule(reqData); - console.log(response.data); return response.data; }, }); @@ -82,7 +81,6 @@ export const LessonCalendar = () => { setSelectedLessonId(null); queryClient.invalidateQueries({ queryKey: ['lessonDetails'] }); } - console.log('dddd>>', selectedLessonDetail); }, [check]); if (isLoadingLessons || isLoadingDetail) { diff --git a/src/pages/mypage/MyLessonList.tsx b/src/pages/mypage/MyLessonList.tsx index 28a81c9..8139957 100644 --- a/src/pages/mypage/MyLessonList.tsx +++ b/src/pages/mypage/MyLessonList.tsx @@ -13,7 +13,6 @@ export const MyLessonList = () => { queryKey: ['allLessons'], queryFn: async () => { const response = await ApiClient.getInstance().getMyLessonAll(); - console.log('신청 클래스 api 호출 : ', response.data); return response.data; }, retry: 1, diff --git a/src/pages/mypage/MyPage.tsx b/src/pages/mypage/MyPage.tsx index 76709a8..1a72b16 100644 --- a/src/pages/mypage/MyPage.tsx +++ b/src/pages/mypage/MyPage.tsx @@ -75,7 +75,6 @@ const MyPage = () => { } if (listError || moneyError) { - console.log('point error', point); return ; }