Skip to content

Commit

Permalink
fix: console.log 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
alswlfl29 committed Jul 8, 2024
1 parent ba17c7c commit 1407872
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 24 deletions.
10 changes: 2 additions & 8 deletions src/apis/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export class ApiClient
method: 'get',
url: '/reservation/my/lessons',
});
console.log('신청클래스 싹다', response.data);
return response.data;
}

Expand Down Expand Up @@ -271,7 +270,7 @@ export class ApiClient
method: 'get',
url: '/reservation/my/opened',
});
console.log(response);

return response.data;
}

Expand All @@ -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;
}

Expand All @@ -301,7 +299,6 @@ export class ApiClient

// 예약자 정보
async peopleList(lessondateId: PeopleListReqType) {
console.log('전달된 lessondate_id: ', lessondateId);
const response = await this.axiosInstance.request<
BaseResponseType<PeopleListType>
>({
Expand Down Expand Up @@ -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');
Expand Down
2 changes: 0 additions & 2 deletions src/apis/imageApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export class ImageApiClient {

// 이미지 업로드
async postLessonImg(formData: FormData) {
console.log('ddddfsdjf>>', formData);
const response = await this.axiosImgInstance.request<string>({
method: 'post',
url: '/lesson/image-upload',
Expand Down Expand Up @@ -55,7 +54,6 @@ export class ImageApiClient {
return config;
},
(error) => {
console.log(error);
return Promise.reject(error);
}
);
Expand Down
5 changes: 1 addition & 4 deletions src/components/molecules/Calculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -83,9 +82,7 @@ export const Calculator = ({ data, lessonId, year }: IProps) => {
queryClient.invalidateQueries({ queryKey: ['monthRevenue'] });
}
},
onError: async () => {
console.log('에러');
},
onError: async () => {},
});

const saveEditPrice = () => {
Expand Down
4 changes: 1 addition & 3 deletions src/components/molecules/MyCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ export const MyCalendar = ({
}
}, [data]);

const handleOpenList = () => {
console.log(value);
};
const handleOpenList = () => {};

useEffect(() => {
onDateChange(new Date());
Expand Down
1 change: 0 additions & 1 deletion src/components/organisms/ApplicantList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ interface IProps {
}

export const ApplicantList = ({ applicants }: IProps) => {
console.log('신청자list: ', applicants);
return (
<div>
<div className='font-hanaMedium flex justify-between text-lg mt-5 '>
Expand Down
1 change: 0 additions & 1 deletion src/components/organisms/LessonSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 0 additions & 1 deletion src/pages/mypage/HostLessonCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
2 changes: 0 additions & 2 deletions src/pages/mypage/LessonCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const LessonCalendar = () => {
month: month,
};
const response = await ApiClient.getInstance().getMySchedule(reqData);
console.log(response.data);
return response.data;
},
});
Expand Down Expand Up @@ -82,7 +81,6 @@ export const LessonCalendar = () => {
setSelectedLessonId(null);
queryClient.invalidateQueries({ queryKey: ['lessonDetails'] });
}
console.log('dddd>>', selectedLessonDetail);
}, [check]);

if (isLoadingLessons || isLoadingDetail) {
Expand Down
1 change: 0 additions & 1 deletion src/pages/mypage/MyLessonList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/pages/mypage/MyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const MyPage = () => {
}

if (listError || moneyError) {
console.log('point error', point);
return <ErrorPage />;
}

Expand Down

0 comments on commit 1407872

Please sign in to comment.