diff --git a/src/pages/StudyRecruit.js b/src/pages/StudyRecruit.js
index 69083c2..c95dcf7 100644
--- a/src/pages/StudyRecruit.js
+++ b/src/pages/StudyRecruit.js
@@ -46,6 +46,7 @@ export default function StudyRecruit() {
});
}
});
+
const onKeyEnter = (event) => {
if (event.key === "Enter") {
onClickSearch();
@@ -54,6 +55,9 @@ export default function StudyRecruit() {
useEffect(() => {
if (isLogin) {
+ if (!category) {
+ setCategory(0);
+ }
axios
.get(
"/studies?page=" +
@@ -69,7 +73,8 @@ export default function StudyRecruit() {
}
)
.then((res) => {
- // console.log(res);
+ console.log(res.data);
+ console.log("hi");
const data = res.data.data;
setPostData((prevState) => ({
...prevState,
@@ -77,7 +82,8 @@ export default function StudyRecruit() {
}));
});
}
- }, [currentPage]);
+ }, [currentPage, category, searchInput]);
+
return (
diff --git a/src/pages/studyRecruitCreate.js b/src/pages/studyRecruitCreate.js
index 6af7d72..0b388c5 100644
--- a/src/pages/studyRecruitCreate.js
+++ b/src/pages/studyRecruitCreate.js
@@ -30,7 +30,6 @@ export default function StudyRecruitCreate() {
}));
}
}, [mondayEndTime, mondayStartTime]);
- console.log("mon", mondayStartTime, mondayEndTime, isMonday, monday);
const [tuesdayStartTime, setTuesdayStartTime] = useState("");
const [tuesdayEndTime, setTuesdayEndTime] = useState("");
@@ -50,7 +49,6 @@ export default function StudyRecruitCreate() {
}));
}
}, [tuesdayEndTime, tuesdayStartTime]);
- console.log("tue", tuesdayStartTime, tuesdayEndTime, isTuesday, tuesday);
const [wednesdayStartTime, setWednesdayStartTime] = useState("");
const [wednesdayEndTime, setWednesdayEndTime] = useState("");
@@ -70,13 +68,6 @@ export default function StudyRecruitCreate() {
}));
}
}, [wednesdayEndTime, wednesdayStartTime]);
- console.log(
- "wed",
- wednesdayStartTime,
- wednesdayEndTime,
- isWednesday,
- wednesday
- );
const [thursdayStartTime, setThursdayStartTime] = useState("");
const [thursdayEndTime, setThursdayEndTime] = useState("");
@@ -96,7 +87,6 @@ export default function StudyRecruitCreate() {
}));
}
}, [thursdayEndTime, thursdayStartTime]);
- console.log("thu", thursdayStartTime, thursdayEndTime, isThursday, thursday);
const [fridayStartTime, setFridayStartTime] = useState("");
const [fridayEndTime, setFridayEndTime] = useState("");
@@ -116,7 +106,6 @@ export default function StudyRecruitCreate() {
}));
}
}, [fridayEndTime, fridayStartTime]);
- console.log("fri", fridayStartTime, fridayEndTime, isFriday, friday);
const [saturdayStartTime, setSaturdayStartTime] = useState("");
const [saturdayEndTime, setSaturdayEndTime] = useState("");
@@ -136,7 +125,6 @@ export default function StudyRecruitCreate() {
}));
}
}, [saturdayEndTime, saturdayStartTime]);
- console.log("sat", saturdayStartTime, saturdayEndTime, isSaturday, saturday);
const [sundayStartTime, setSundayStartTime] = useState("");
const [sundayEndTime, setSundayEndTime] = useState("");
@@ -156,7 +144,6 @@ export default function StudyRecruitCreate() {
}));
}
}, [sundayEndTime, sundayStartTime]);
- console.log("sun", sundayStartTime, sundayEndTime, isSunday, sunday);
const [modalOpenMon, setModalOpenMon] = useState(false);
const [modalOpenTue, setModalOpenTue] = useState(false);
@@ -299,17 +286,30 @@ export default function StudyRecruitCreate() {
}
}, [isSunday, sunday]);
- console.log(
- userSeq,
- typeof Number(categorySeq),
- Number(categorySeq),
- studyTitle,
- studyShortDesc,
- studyDesc,
- studyRecruitEnd,
- days,
- studyDesc.length
- );
+ // console.log(
+ // userSeq,
+ // typeof Number(categorySeq),
+ // Number(categorySeq),
+ // studyTitle,
+ // studyShortDesc,
+ // studyDesc,
+ // studyRecruitEnd,
+ // days,
+ // studyDesc.length
+ // );
+ // console.log("mon", mondayStartTime, mondayEndTime, isMonday, monday);
+ // console.log("tue", tuesdayStartTime, tuesdayEndTime, isTuesday, tuesday);
+ // console.log(
+ // "wed",
+ // wednesdayStartTime,
+ // wednesdayEndTime,
+ // isWednesday,
+ // wednesday
+ // );
+ // console.log("thu", thursdayStartTime, thursdayEndTime, isThursday, thursday);
+ // console.log("fri", fridayStartTime, fridayEndTime, isFriday, friday);
+ // console.log("sat", saturdayStartTime, saturdayEndTime, isSaturday, saturday);
+ // console.log("sun", sundayStartTime, sundayEndTime, isSunday, sunday);
const onSubmitStudy = useCallback(() => {
const TOKEN = localStorage.getItem("accessToken");
@@ -651,7 +651,12 @@ export default function StudyRecruitCreate() {
-
스터디 소개
+
+ 스터디 소개
+
+ {studyDesc.length}/1000
+
+