diff --git a/frontend/src/components/LectureEnroll/LectureEnroll.jsx b/frontend/src/components/LectureEnroll/LectureEnroll.jsx index a961f7b..4642464 100644 --- a/frontend/src/components/LectureEnroll/LectureEnroll.jsx +++ b/frontend/src/components/LectureEnroll/LectureEnroll.jsx @@ -2,7 +2,7 @@ import styles from './LectureEnroll.module.css'; import { useLectureEnrollCancel } from '../../hooks/api/useLectureEnrollCancel'; import { useLectureEnrollAccept } from '../../hooks/api/useLectureEnrollAccept'; -export default function LectureEnroll({ userName, enrollid, onDelete }) { +export default function LectureEnroll({ userName, enrollid, onDelete, enrolled = true }) { const { lectureEnrollCancel } = useLectureEnrollCancel(); const { lectureEnrollAccept } = useLectureEnrollAccept(); @@ -28,12 +28,14 @@ export default function LectureEnroll({ userName, enrollid, onDelete }) {
{userName}
- + {!enrolled && ( + + )}