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}
- -새로운 계획 추가하기
-새로운 계획 추가하기
+ } + > + ) } 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.prof && renList.room ? renList.prof + ' - ' + renList.room : (renList.prof || renList.room)}