Skip to content

Commit f36ee6e

Browse files
authored
Merge pull request #142 from haruharuganda/dev
fix/ console.log삭제 #5
2 parents d544b20 + 7c2f599 commit f36ee6e

23 files changed

+5
-92
lines changed

src/api/LoginApi.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export const LoginApi = {
77
},
88

99
KakaoLogin: async (payload) => {
10-
console.log("카카오 페이로드", payload);
1110
return await instance.post("kakao/login", payload);
1211
},
1312

src/api/ScheduleApi.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const ScheduleApi = {
2222
},
2323
//스케줄 수정
2424
editScheduleApi: (payload) => {
25-
console.log("수정데이터?", payload);
2625
const data = instance.put(`/events/${payload.eventId}`, payload.Schedule);
2726
return data;
2827
},

src/components/follow/FollowList.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const FollowList = () => {
3232
}, [follower, following]);
3333

3434
const handleTabChange = (tab) => {
35-
console.log(tab);
3635
setActiveTab(tab);
3736
if (tab === "following") {
3837
setBdColor({

src/components/layout/TopNavBar.jsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ const TopNavBar = () => {
7878
await setAllChecked("");
7979
});
8080
} catch (error) {
81-
console.log("에러발생:", error);
8281
if (eventSource) eventSource.close();
8382
}
8483
};
@@ -113,15 +112,13 @@ const TopNavBar = () => {
113112
//navigate 경로는 검색페이지루트가 정해지면 변경하면됩니다
114113
onClick={() => {
115114
navigate("/userSearch");
116-
console.log("검색페이지로이동");
117115
}}
118116
/>
119117
<img
120118
className="h-[24px] cursor-pointer w-[24px] flex left-[293px] mt-[13px]"
121119
src={plusIcon}
122120
alt="추가버튼"
123121
onClick={() => {
124-
console.log("스케쥴추가페이지로이동!");
125122
//스케줄 추가를 하기 위한 파라미터 값을 넘긴다.
126123
navigate("/schedule", { state: { type: "add", id: "" } });
127124
}}
@@ -132,7 +129,6 @@ const TopNavBar = () => {
132129
src={notifyIcon}
133130
alt="알림버튼"
134131
onClick={() => {
135-
console.log("알림페이지로 이동");
136132
navigate("/notification");
137133
}}
138134
/>

src/components/login/InputEmail.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const InputEmail = () => {
4646
const emailRefCurrent = emailRef.current;
4747
const authenticationNumberRefCurrent = authenticationNumberRef.current;
4848
if (id === "email") {
49-
console.log("email입니다");
5049
setStyle(() => ({
5150
...style,
5251
bgColorEmail: "bg-inputBoxFocus",
@@ -114,7 +113,6 @@ const InputEmail = () => {
114113
onModalOpen();
115114
const data = await LoginApi.SendEmailAuthenticationNumber(payload);
116115
setIsLoding(() => false);
117-
console.log(data);
118116
if (data.status === 200) {
119117
sessionStorage.setItem("changePasswordEmail", payload.email);
120118
setModalStr({
@@ -124,7 +122,6 @@ const InputEmail = () => {
124122
setInputCheck(() => ({ ...InputCheck, input: true }));
125123
}
126124
} catch (error) {
127-
console.log(error.response);
128125
const { data } = error.response;
129126
if (data.status === 400) {
130127
setIsLoding(() => false);
@@ -182,7 +179,7 @@ const InputEmail = () => {
182179
onModalOpen();
183180
const { data } = await LoginApi.SendAuthenticationNumber(payload);
184181
setIsLoding(() => false);
185-
console.log(data);
182+
186183
if (data.status === 200) {
187184
setModalStr({
188185
...ModalStr,
@@ -192,7 +189,6 @@ const InputEmail = () => {
192189
setInputCheck(() => ({ ...InputCheck, modal: true }));
193190
}
194191
} catch (error) {
195-
console.log(error.response);
196192
const { data } = error.response;
197193
if (data.status === 400) {
198194
setIsLoding(() => false);

src/components/login/KakaoLoginLoding.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const KakaoLoginLoding = () => {
1010

1111
// new URL 객체에서 searchParams객체의 get메소드를 사용하여 'code'키의 값을 추출
1212
const code = new URL(window.location.href).searchParams.get("code");
13-
console.log("카카오 인가코드", code);
1413

1514
// 페이지가 로딩됨과 동시에 디스패치로 code 전달
1615
useEffect(() => {

src/components/login/NaverLoginLoding.jsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ function NaverLoginLoding() {
99

1010
const getToken = async () => {
1111
const navertoken = window.location.href.split("=")[1].split("&")[0];
12-
console.log(navertoken);
13-
1412
// sessionStorage.setItem("NaverAuthorization", navertoken);
1513
};
1614

@@ -24,16 +22,12 @@ function NaverLoginLoding() {
2422

2523
.then((res) => {
2624
//이미 멤버라면 Authorization이 담겨 올 것이고, member라고
27-
console.log("res", res);
28-
console.log("email?", res.data.data.email);
29-
console.log("member?", res.data.message);
3025
const email = res.data.data.email;
3126
if (res.data.message !== "non-member") {
3227
const accessToken = res.headers.get("Authorization");
3328
const nickname = res.data.data.nickname;
3429
const userId = res.data.data.userId;
3530
const profileImage = res.data.data.profileImage;
36-
console.log(nickname);
3731
sessionStorage.setItem("accessToken", accessToken);
3832
sessionStorage.setItem("nickname", nickname);
3933
sessionStorage.setItem("profileImage", profileImage);
@@ -50,7 +44,6 @@ function NaverLoginLoding() {
5044
return window.location.assign("/signup/setProfileName");
5145
}
5246
});
53-
// console.log(data);
5447
};
5548

5649
useEffect(() => {

src/components/main/InfiniteScroll.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import MoonLoader from "react-spinners/MoonLoader";
88
const InfiniteScroll = () => {
99
const dispatch = useDispatch();
1010
const { schedules, isLoading } = useSelector((state) => state.ScheduleSlice);
11-
console.log(isLoading);
1211
//페이징 생성
1312
const [page, setPage] = useState(0);
1413
//중복 실행 방저

src/components/modal/JoinerList.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ const JoinerList = ({
99
setSelectedUserNames,
1010
selectedUserNames,
1111
}) => {
12-
useEffect(() => {
13-
console.log(selectedUserIds);
14-
}, [selectedUserIds]);
12+
useEffect(() => {}, [selectedUserIds]);
1513

1614
function selectHandler(followId) {
1715
// 기존 선택된 사용자 ID 리스트에서 해당 아이디가 이미 선택되어 있는지 확인

src/components/modal/KebabButtonModal.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const KebabModal = ({ setModalOpen, id }) => {
2525
const confirmDeleteHandler = () => {
2626
//DELETE 기능넣으면 됨
2727
dispatch(__deleteSchedule([id, userId, dispatch]));
28-
console.log(id);
2928
navigate("/main");
3029
};
3130

0 commit comments

Comments
 (0)