diff --git a/frontend/src/pages/MyPage/components/MyPageSection.tsx b/frontend/src/pages/MyPage/components/MyPageSection.tsx index de37920..e089e21 100644 --- a/frontend/src/pages/MyPage/components/MyPageSection.tsx +++ b/frontend/src/pages/MyPage/components/MyPageSection.tsx @@ -14,11 +14,10 @@ import SubLogoOriginal from "@/assets/imgs/subLogoOriginal.png"; const NICKNAME_REGEXP = /^[a-zA-Z0-9가-힣]{3,15}$/; type Lecture = { - date: string; - duration: string; - user: string; title: string; description: string; + presenter_id: { username: string }; + _id: string; }; const MyPageSection = () => { @@ -139,12 +138,10 @@ const MyPageSection = () => { lectureList.map((value, index) => ( navigate("/")} + onClick={() => navigate(`/review?id=${value._id}`)} /> )) ) : ( diff --git a/frontend/src/pages/MyPage/components/ReplayLectureCard.tsx b/frontend/src/pages/MyPage/components/ReplayLectureCard.tsx index 2ab1c40..ccb713a 100644 --- a/frontend/src/pages/MyPage/components/ReplayLectureCard.tsx +++ b/frontend/src/pages/MyPage/components/ReplayLectureCard.tsx @@ -1,18 +1,14 @@ import ProfileMedium from "@/assets/imgs/profileMedium.png"; import UserIcon from "@/assets/svgs/user.svg?react"; -import CalendarIcon from "@/assets/svgs/calendar.svg?react"; -import PlayIcon from "@/assets/svgs/play.svg?react"; interface ReplayLectureCardProps { - date: string; - duration: string; user: string; title: string; description: string; onClick: () => void; } -const ReplayLectureCard = ({ date, duration, user, title, description, onClick }: ReplayLectureCardProps) => { +const ReplayLectureCard = ({ user, title, description, onClick }: ReplayLectureCardProps) => { return (

{description}

+
+ ); +}; + +export default ReplayLectureCard; -
+/* +
{date} @@ -41,8 +43,4 @@ const ReplayLectureCard = ({ date, duration, user, title, description, onClick } {duration}
-
- ); -}; - -export default ReplayLectureCard; +*/