From 9ac4fbc29f916f0a9b3ed15507189ecb23e50b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EA=B8=B0=EC=98=81?= Date: Thu, 8 Aug 2024 17:01:01 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=A0=84=EC=B2=B4=20=EC=88=98=EA=B0=95?= =?UTF-8?q?=EC=83=9D=20=EA=B4=80=EB=A6=AC(Delete)=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LectureEnroll/LectureEnroll.jsx | 16 ++++--- .../LectureEnroll/LectureEnroll.module.css | 4 ++ .../LectureEnrollPage/LectureEnrollPage.jsx | 44 ++++++++++++++----- .../LectureEnrollPage.module.css | 6 +++ 4 files changed, 51 insertions(+), 19 deletions(-) create mode 100644 frontend/src/pages/LectureEnrollPage/LectureEnrollPage.module.css 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 && ( + + )}