diff --git a/client/src/components/Modal/DeleteModal.js b/client/src/components/Modal/DeleteModal.js new file mode 100644 index 0000000000000000000000000000000000000000..b877f140b8f33f2b01e39445cf1a7dd7cbda27c3 --- /dev/null +++ b/client/src/components/Modal/DeleteModal.js @@ -0,0 +1,20 @@ +const DeleteModal = ({ handleClick, renListID }) => { + return ( +
+ ) +} + +export default DeleteModal; diff --git a/client/src/components/StudyPlan/StudyPlanCard.js b/client/src/components/StudyPlan/StudyPlanCard.js index bede003988365d375e64b94bb23924ce094d40fc..3adc521a7d7f37c25f330b0425b3c06fda50568e 100644 --- a/client/src/components/StudyPlan/StudyPlanCard.js +++ b/client/src/components/StudyPlan/StudyPlanCard.js @@ -1,26 +1,30 @@ import { Link } from "react-router-dom"; import PlanLineList from "./PlanLineList"; +import DeleteModal from "../Modal/DeleteModal"; import style from "./studyplan.module.scss"; -const StudyPlanCard = ({ renList, handleClick, handleEdit }) => { +const StudyPlanCard = ({ renList, handleEdit, delSubject }) => { return ( - -{renList.prof && renList.room ? renList.prof + ' - ' + renList.room : (renList.prof || renList.room)}
+{renList.prof && renList.room ? renList.prof + ' - ' + renList.room : (renList.prof || renList.room)}
-