From 1dafa06781adfd91d43e847c27df86e88a9cab37 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Tue, 13 Aug 2024 17:52:56 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B0=95=EC=9D=98=EC=8B=A4=20=EB=8B=AB?= =?UTF-8?q?=EA=B8=B0=20=EB=B2=84=ED=8A=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Layout/LectureLayout.jsx | 3 ++- .../LectureHeader/LectureHeader.jsx | 22 ++++++++++++++-- .../LectureHeader/LectureHeader.module.css | 25 +++++++++++++++++++ frontend/src/pages/LivePage/LivePage.jsx | 11 ++++++++ 4 files changed, 58 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Layout/LectureLayout.jsx b/frontend/src/components/Layout/LectureLayout.jsx index beabfd3..e9eeaa7 100644 --- a/frontend/src/components/Layout/LectureLayout.jsx +++ b/frontend/src/components/Layout/LectureLayout.jsx @@ -15,7 +15,7 @@ export default function LectureLayout() { const navigate = useNavigate(); const { lectureDelete } = useLectureDelete(); - const { data } = useLectureInfo(lectureId); + const { data, refetch } = useLectureInfo(lectureId); const lecture = data?.data; const userType = useBoundStore((state) => state.userType); const handleDelete = () => { @@ -46,6 +46,7 @@ export default function LectureLayout() { tutor={lecture.teacherName} img={lecture.image} isLive={lecture.online} + refetch={refetch} />