diff --git a/histudy-front/src/components/Image/UploadImage.js b/histudy-front/src/components/Image/UploadImage.js
index 8ca79ec..4b52502 100644
--- a/histudy-front/src/components/Image/UploadImage.js
+++ b/histudy-front/src/components/Image/UploadImage.js
@@ -103,7 +103,7 @@ export function ImageUpload({ setValue, getValues }) {
onChange={onImageChange}
/>
-
+
{getValues("images")?.map((imageUrl, index) => (
handleEdit(student.id, index)}
+ onClick={() => {
+ handleEdit(student.id, index);
+
+ setTeam(row.group);
+ }}
>
diff --git a/histudy-front/src/components/Manager/ReportTable.js b/histudy-front/src/components/Manager/ReportTable.js
index 20cfb90..d745afa 100644
--- a/histudy-front/src/components/Manager/ReportTable.js
+++ b/histudy-front/src/components/Manager/ReportTable.js
@@ -15,8 +15,6 @@ export default function ReportTable({
const navigate = useNavigate();
const clickReport = (index) => {
- console.log(index);
-
navigate("/reportDetail", { state: index });
};
const handleDeleteRow = (index) => {};
diff --git a/histudy-front/src/components/Manager/StudentListTable.js b/histudy-front/src/components/Manager/StudentListTable.js
index b952a04..67d7550 100644
--- a/histudy-front/src/components/Manager/StudentListTable.js
+++ b/histudy-front/src/components/Manager/StudentListTable.js
@@ -35,7 +35,6 @@ export default function StudentListTable({
const [edit, setEdit] = useState([false]);
const handleEdit = (index) => {
- console.log(index);
const newEdit = [...edit];
newEdit[index] = !newEdit[index];
setEdit(newEdit);
@@ -44,7 +43,6 @@ export default function StudentListTable({
const navigate = useNavigate();
const handleDeleteRow = (index) => {};
const handleClick = () => {
- console.info("You clicked the Chip.");
navigate("/manageReport");
};
const handleSave = (id) => {
diff --git a/histudy-front/src/components/Manager/StudyGroupTable.js b/histudy-front/src/components/Manager/StudyGroupTable.js
index 8d30e74..074531a 100644
--- a/histudy-front/src/components/Manager/StudyGroupTable.js
+++ b/histudy-front/src/components/Manager/StudyGroupTable.js
@@ -34,8 +34,6 @@ export default function StudyGroupTable({
const navigate = useNavigate();
const handleClick = (id) => {
- console.info("You clicked the Chip.");
- console.log("id: " + id);
navigate("/manageReport", { state: id });
};
diff --git a/histudy-front/src/components/Manager/UnGroupTable.js b/histudy-front/src/components/Manager/UnGroupTable.js
index 76d4814..bbd0125 100644
--- a/histudy-front/src/components/Manager/UnGroupTable.js
+++ b/histudy-front/src/components/Manager/UnGroupTable.js
@@ -182,7 +182,11 @@ export default function UnGroupTable({
- handleEdit(index)}>
+ {
+ handleEdit(index);
+ }}
+ >
@@ -310,19 +314,17 @@ export default function UnGroupTable({
team: Number(team),
sid: !sid ? row.sid : sid,
name: row.name,
- id: row.sub,
+ id: row.id,
};
- editUser(newData).then((res) => {
- alert("변경되었습니다!");
- window.location.reload();
- });
-
- // alert("저장되었습니다!");
- // handleEdit(index);
-
- // setIsLoading(true);
- // window.location.reload();
+ editUser(newData)
+ .then((res) => {
+ alert("변경되었습니다!");
+ window.location.reload();
+ })
+ .catch((err) => {
+ alert("변경에 실패했습니다!");
+ });
}}
label="저장"
/>{" "}
diff --git a/histudy-front/src/components/Post/PostCourses.js b/histudy-front/src/components/Post/PostCourses.js
index 6088ce4..f800daa 100644
--- a/histudy-front/src/components/Post/PostCourses.js
+++ b/histudy-front/src/components/Post/PostCourses.js
@@ -6,8 +6,6 @@ import { Controller } from "react-hook-form";
export default function PostCourses({ control, setValue, getValues }) {
const [teamMemberCourses, setTeamMemberCourses] = useState([]);
useEffect(() => {
- // teamCourses().then((res) => console.log(res));
- console.log(teamCourses().then((res) => console.log("dd", res)));
teamCourses().then((res) => setTeamMemberCourses(res.courses));
}, []);
@@ -15,8 +13,6 @@ export default function PostCourses({ control, setValue, getValues }) {
let { value, checked } = event.target;
// value = value.slice(value.length - 8, value.length);
- console.log(event.target.value);
-
if (checked) {
setValue("courses", [...getValues("courses"), value]);
} else {
diff --git a/histudy-front/src/components/Post/PostMember.js b/histudy-front/src/components/Post/PostMember.js
index e323e8d..8f3e924 100644
--- a/histudy-front/src/components/Post/PostMember.js
+++ b/histudy-front/src/components/Post/PostMember.js
@@ -8,7 +8,6 @@ export default function PostMember({ control, setValue, getValues }) {
useEffect(() => {
getMyTeamUsers().then((res) => {
setTeamMember(res);
- console.log("Tmembers", res);
});
}, []);
diff --git a/histudy-front/src/components/Rank/Item.js b/histudy-front/src/components/Rank/Item.js
index 29fee82..d97ab82 100644
--- a/histudy-front/src/components/Rank/Item.js
+++ b/histudy-front/src/components/Rank/Item.js
@@ -13,6 +13,7 @@ export default function Item({ item, itemsHover, index }) {
src={`${!item?.thumbnail ? "/img/mainImg2.png" : item?.thumbnail}`}
alt={item?.title}
loading="lazy"
+ style={{ objectFit: "cover", height: "300px", width: "300px" }}
/>
)}
{
- console.log("ungroup data", data);
setUngroupData(data);
},
},
diff --git a/histudy-front/src/pages/Manager/ManageReport.js b/histudy-front/src/pages/Manager/ManageReport.js
index 740cf31..9e69821 100644
--- a/histudy-front/src/pages/Manager/ManageReport.js
+++ b/histudy-front/src/pages/Manager/ManageReport.js
@@ -32,8 +32,6 @@ export default function ManageReport() {
useEffect(() => {
if (state) {
readGroupReport(state).then((data) => {
- console.log("data");
- console.log(data);
setReportData(data);
});
}
@@ -96,8 +94,6 @@ export default function ManageReport() {
navigate(-1);
};
const clickReport = (index) => {
- console.log(index);
-
navigate("/reportDetail", { state: index });
};
return (
diff --git a/histudy-front/src/pages/Manager/ReportDetail.js b/histudy-front/src/pages/Manager/ReportDetail.js
index 951f958..95f62c7 100644
--- a/histudy-front/src/pages/Manager/ReportDetail.js
+++ b/histudy-front/src/pages/Manager/ReportDetail.js
@@ -54,8 +54,6 @@ export default function ReportDetail() {
}
}, []);
- console.log(state);
-
const navigate = useNavigate();
const moveToBefore = () => {
@@ -63,7 +61,6 @@ export default function ReportDetail() {
};
const handleClick = async (buttonId) => {
- console.log(buttonId, "clicked");
if (buttonId === "modify") {
navigate(`/report/modify/${state.id}`, { state: state });
} else if (buttonId === "delete") {
@@ -133,13 +130,13 @@ export default function ReportDetail() {
sx={{
display: "flex",
width: "100%",
- height: "40px",
+
mb: "1rem",
position: "relative",
alignItems: "center",
}}
>
-
+
제목
-
+
참여 멤버
@@ -188,11 +185,11 @@ export default function ReportDetail() {
sx={{
display: "flex",
width: "100%",
- height: "40px",
+
mb: "1rem",
}}
>
-
+
스터디 과목
@@ -208,11 +205,11 @@ export default function ReportDetail() {
sx={{
display: "flex",
width: "100%",
- height: "40px",
+
mb: "1rem",
}}
>
-
+
스터디 시간
@@ -223,18 +220,18 @@ export default function ReportDetail() {
sx={{
display: "flex",
width: "100%",
- height: "40px",
+
mb: "1rem",
}}
>
-
+
보고서 내용
{reportData.content}
-
+
인증 사진
{
setTeams(data.teams);
- console.log(data.teams);
setItemsHover(new Array(data.teams.length).fill(false));
},
});