Skip to content

Commit

Permalink
Refactor : 콘솔로그 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinhyuk committed Sep 4, 2023
1 parent ab15c03 commit 199d0d8
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 43 deletions.
4 changes: 1 addition & 3 deletions histudy-front/src/components/Manager/GroupTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default function GroupTables({
newGroupEdit[groupId] = !newGroupEdit[groupId];
setEdit(newGroupEdit);

console.log(index);
const newEdit = [...studentEdit];

newEdit[index] = !newEdit[index];
Expand Down Expand Up @@ -103,7 +102,7 @@ export default function GroupTables({
sx={{
display: "flex",
justifyContent: "space-between",
borderTop: 1,
// borderTop: 1,
borderColor: "primary.main",
px: "30px",
}}
Expand Down Expand Up @@ -358,7 +357,6 @@ export default function GroupTables({
name: student.name,
id: student.id,
};
console.log(newData);

editUser(newData)
.then(() => {
Expand Down
2 changes: 0 additions & 2 deletions histudy-front/src/components/Manager/ReportTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export default function ReportTable({

const navigate = useNavigate();
const clickReport = (index) => {
console.log(index);

navigate("/reportDetail", { state: index });
};
const handleDeleteRow = (index) => {};
Expand Down
2 changes: 0 additions & 2 deletions histudy-front/src/components/Manager/StudentListTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) => {
Expand Down
2 changes: 0 additions & 2 deletions histudy-front/src/components/Manager/StudyGroupTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
};

Expand Down
1 change: 0 additions & 1 deletion histudy-front/src/components/Manager/UnGroupTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ export default function UnGroupTable({
name: row.name,
id: row.id,
};
console.log(newData);

editUser(newData)
.then((res) => {
Expand Down
4 changes: 0 additions & 4 deletions histudy-front/src/components/Post/PostCourses.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ 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));
}, []);

const handleCheckboxChange = (event) => {
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 {
Expand Down
1 change: 0 additions & 1 deletion histudy-front/src/components/Post/PostMember.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default function PostMember({ control, setValue, getValues }) {
useEffect(() => {
getMyTeamUsers().then((res) => {
setTeamMember(res);
console.log("Tmembers", res);
});
}, []);

Expand Down
1 change: 0 additions & 1 deletion histudy-front/src/pages/Manager/ManageGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default function ManageGroup() {

cacheTime: 5 * 60 * 1000,
onSuccess: (data) => {
console.log("ungroup data", data);
setUngroupData(data);
},
},
Expand Down
4 changes: 0 additions & 4 deletions histudy-front/src/pages/Manager/ManageReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export default function ManageReport() {
useEffect(() => {
if (state) {
readGroupReport(state).then((data) => {
console.log("data");
console.log(data);
setReportData(data);
});
}
Expand Down Expand Up @@ -96,8 +94,6 @@ export default function ManageReport() {
navigate(-1);
};
const clickReport = (index) => {
console.log(index);

navigate("/reportDetail", { state: index });
};
return (
Expand Down
3 changes: 0 additions & 3 deletions histudy-front/src/pages/Manager/ReportDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,13 @@ export default function ReportDetail() {
}
}, []);

console.log(state);

const navigate = useNavigate();

const moveToBefore = () => {
navigate(-1);
};

const handleClick = async (buttonId) => {
console.log(buttonId, "clicked");
if (buttonId === "modify") {
navigate(`/report/modify/${state.id}`, { state: state });
} else if (buttonId === "delete") {
Expand Down
2 changes: 0 additions & 2 deletions histudy-front/src/pages/Post/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { StyledColumnAlignLayout } from "../../components/common/StyledLayout";
export default function Post({ children }) {
const { state } = useLocation();

console.log("작성", state);
const [isCodeModal, setIsCodeModal] = useState(false);

const { handleSubmit, watch, setValue, getValues, control } = useForm({
Expand Down Expand Up @@ -60,7 +59,6 @@ export default function Post({ children }) {
images: formData.images,
courses: formData.courses,
};
console.log(newReport);
state ? modifyReport(state.id, newReport) : postReport(newReport);

alert("보고서 제출이 완료되었습니다.");
Expand Down
22 changes: 4 additions & 18 deletions histudy-front/src/pages/Rank/Rank.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
import {
Avatar,
Chip,
Grid,
IconButton,
ImageList,
ImageListItemBar,
ListSubheader,
Typography,
styled,
} from "@mui/material";
import { Grid, ImageList, styled } from "@mui/material";

import { Box } from "@mui/system";
import CustomTable from "../../components/common/CustomTable";
import { InfoIcon } from "../../theme/overrides/CustomIcons";
import { useEffect, useState } from "react";
import { useState } from "react";
import { getAllTeamsForRank } from "../../apis/rank";

import LooksOneIcon from "@mui/icons-material/LooksOne";
import HoverBox from "../../components/Rank/HoverBox";
import { AnimatePresence, motion } from "framer-motion";
import { Image } from "@mui/icons-material";

import NoDataLottie from "../../components/common/NoDataLottie";
import { StyledColumnAlignLayout } from "../../components/common/StyledLayout";
import Title from "../../components/common/Title";
import { useQuery } from "react-query";
import ImageListItem from "../../components/Rank/Item";

import Item from "../../components/Rank/Item";

const StyledScrollBox = styled(Box)({
Expand All @@ -47,7 +34,6 @@ export default function Rank() {
casheTime: 10 * 60 * 1000,
onSuccess: (data) => {
setTeams(data.teams);
console.log(data.teams);
setItemsHover(new Array(data.teams.length).fill(false));
},
});
Expand Down

0 comments on commit 199d0d8

Please sign in to comment.