diff --git a/src/components/pages/MyPage/MypageInterest.tsx b/src/components/pages/MyPage/MypageInterest.tsx index a1e5b0e..ce19dfe 100644 --- a/src/components/pages/MyPage/MypageInterest.tsx +++ b/src/components/pages/MyPage/MypageInterest.tsx @@ -9,7 +9,6 @@ import { Carousel, CarouselSlide } from "@mantine/carousel"; import { VideoCard } from "@/components/common/VideoCard/VideoCard"; import { IconReportSearch } from "@tabler/icons-react"; -import { IVideoCard, MockInterestProjects, MockInterestVideos } from "./_mock/mock-user"; import { PrimaryButton } from "@/components/common/Buttons"; import { IProjectContent } from "@/types/project"; import { CommonAxios } from "@/utils/CommonAxios"; diff --git a/src/components/pages/MyPage/MypageTable.tsx b/src/components/pages/MyPage/MypageTable.tsx index f016eb7..e484286 100644 --- a/src/components/pages/MyPage/MypageTable.tsx +++ b/src/components/pages/MyPage/MypageTable.tsx @@ -2,7 +2,7 @@ import { CommonAxios } from "@/utils/CommonAxios"; import classes from "./MypageTable.module.css"; import { Text, Table, TableThead, TableTbody, TableTh, TableTr, TableTd } from "@mantine/core"; import { IUserInquiry, IUserProposal } from "@/types/user"; -import { useState } from "react"; +import { useEffect, useState } from "react"; export function MypageTable() { const [proposals, setProposals] = useState([]); @@ -34,6 +34,11 @@ export function MypageTable() { } }; + useEffect(() => { + fetchInquiries(); + fetchProposals(); + }); + /** * 날짜 형식 (YYYY.MM.DD) */