diff --git a/client/src/components/StudyPlan/PlanLineList.js b/client/src/components/StudyPlan/PlanLineList.js index eacb560e7aa5cbb93d2e0704fda73033e0afb125..688f1a57a6f034b27da71dee4f1a2dd150b4e894 100644 --- a/client/src/components/StudyPlan/PlanLineList.js +++ b/client/src/components/StudyPlan/PlanLineList.js @@ -2,19 +2,19 @@ import { Link } from "react-router-dom"; import styles from "./studyplan.module.scss"; const PlanLineList = ({ subjectId, planList = [] }) => { - return ( - - {planList.length !== 0 ? planList.map(plan =>
-

- {plan.title}

- -
) : -
- -

새로운 계획 추가하기

-
- } - - ) + return ( + <> + {planList.length !== 0 ? planList.map(plan =>
+ - {plan.title} +
+ console.log("checkbox clicke")} /> +
+
) : + +

새로운 계획 추가하기

+ } + + ) } export default PlanLineList \ No newline at end of file diff --git a/client/src/components/StudyPlan/StudyPlanCard.js b/client/src/components/StudyPlan/StudyPlanCard.js index e77c1f2e30402f3131502926ed0bb69b9b8b56e7..af8fa4fe605bcb5f1ff67ae77c0a0c9a81c5905a 100644 --- a/client/src/components/StudyPlan/StudyPlanCard.js +++ b/client/src/components/StudyPlan/StudyPlanCard.js @@ -4,20 +4,20 @@ import PlanLineList from "./PlanLineList"; const StudyPlanCard = ({ renList, handleClick }) => { return ( -
+
{renList.name}
- handleClick(renList.id)}> + handleClick(e, renList.id)}>

{renList.prof && renList.room ? renList.prof + ' - ' + renList.room : (renList.prof || renList.room)}

-
+ ) } diff --git a/client/src/components/StudyPlan/StudyPlanList.js b/client/src/components/StudyPlan/StudyPlanList.js index f96bc3d2ce117ddba9c42747d4b70d5bf9bd7683..9126a7a009b07a3c847d5bdd3d7d455a64ea35d6 100644 --- a/client/src/components/StudyPlan/StudyPlanList.js +++ b/client/src/components/StudyPlan/StudyPlanList.js @@ -27,7 +27,8 @@ const StudyPlanList = () => { } } - async function delSubject(subjectId) { + async function delSubject(e, subjectId) { + e.preventDefault() try { setError("") await subjectApi.removeSubject(subjectId, user.id)