Skip to content
Snippets Groups Projects
Commit 1d2828ea authored by 이권민's avatar 이권민
Browse files

[EDIT] console.log 주석 처리

parent f62902c1
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ const CalendarWeek = ({
};
const weekDates = weeks[currentWeekIndex] || [];
console.log(endTimeSlot, startTimeSlot);
// console.log(endTimeSlot, startTimeSlot);
return (
<div className="calendarWeekContainer wrap">
<div className="button-container">
......
......@@ -3,7 +3,7 @@ import Input from "./Input";
import Button from "./Button";
import { useNavigate, useParams } from "react-router-dom";
import axios from "axios";
import "../styles/HomeParticipateForm.css"
import "../styles/HomeParticipateForm.css";
function HomeParticipateForm() {
const [name, setName] = useState("");
......@@ -61,7 +61,7 @@ function HomeParticipateForm() {
try {
const response = await axios.get(`/meetings/${id}/`);
console.log(response);
// console.log(response);
const startDate = response.data.startDate;
const endDate = response.data.endDate;
const startTime = response.data.availableVotingStartTime;
......@@ -82,10 +82,10 @@ function HomeParticipateForm() {
},
});
} catch (e) {
console.log(e);
console.error(e);
}
} catch (e) {
console.log(e);
console.error(e);
}
} catch (error) {
if (error.response) {
......@@ -105,7 +105,7 @@ function HomeParticipateForm() {
} catch (error) {
if (error.response) {
if (error.response.status === 409) {
alert("인원 초과입니다")
alert("인원 초과입니다");
}
}
}
......@@ -123,7 +123,7 @@ function HomeParticipateForm() {
}
);
const response = await axios.get(`/meetings/${id}/my/schedules`); //투표 여부 확인을 위해
console.log(response);
// console.log(response);
const schedules = response.data.schedules;
if (schedules.length) {
// 투표를 진행하였으면 결과 페이지로 이동
......@@ -134,7 +134,7 @@ function HomeParticipateForm() {
// 쿠키 재생성
try {
const response = await axios.get(`/meetings/${id}/`);
console.log(response);
// console.log(response);
const startDate = response.data.startDate;
const endDate = response.data.endDate;
const startTime = response.data.availableVotingStartTime;
......@@ -150,7 +150,7 @@ function HomeParticipateForm() {
},
});
} catch (e) {
console.log(e);
console.error(e);
}
} catch (error) {
if (error.response) {
......@@ -191,7 +191,10 @@ function HomeParticipateForm() {
<form>
<div>
<h1>투표에 참여하기</h1>
<h2 className="h2"> 아이디가 없다면 아래 양식에 맞춰 작성 참여하기를 누르세요</h2>
<h2 className="h2">
{" "}
아이디가 없다면 아래 양식에 맞춰 작성 참여하기를 누르세요
</h2>
<Input
type="text"
value={name}
......
......@@ -69,9 +69,9 @@ function MeetingInfoForm() {
transformedPurpose = "ETC";
}
try {
console.log(startTime);
console.log(endTime);
console.log(usingDate);
// console.log(startTime);
// console.log(endTime);
// console.log(usingDate);
const response = await axios.post("/meetings", {
title: title,
adminPassword: password,
......@@ -88,7 +88,7 @@ function MeetingInfoForm() {
} catch (error) {
console.error("Error sending data to the backEnd", error);
}
console.log(meetingPurpose);
// console.log(meetingPurpose);
}
};
......
......@@ -51,7 +51,7 @@ export default function ResultEndForm() {
FOOD: "식사를 하는 ",
ETC: "기타의 모임을 잡은 ",
};
console.log(possibleDates);
// console.log(possibleDates);
const fetchMeetingData = async () => {
try {
const response = await fetch(`/meetings/${meeting_id}/details`);
......@@ -193,7 +193,7 @@ export default function ResultEndForm() {
if (!meetingData) {
return <div>로딩 중...</div>;
}
console.log(meetingData.confirmedTime);
// console.log(meetingData.confirmedTime);
return (
<div
style={{
......
......@@ -62,7 +62,7 @@ function UserTimeInfo() {
setState(false);
};
const handleCalendar = (value) => {
console.log("Selected Date:", value);
// console.log("Selected Date:", value);
};
const fetchData = async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment