Skip to content

Commit

Permalink
fix: 유저 과제제안 및 문의 리스트 조회 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sera2002 committed Dec 2, 2024
1 parent 021d584 commit f504968
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/components/pages/MyPage/MypageInterest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
7 changes: 6 additions & 1 deletion src/components/pages/MyPage/MypageTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<IUserProposal[]>([]);
Expand Down Expand Up @@ -34,6 +34,11 @@ export function MypageTable() {
}
};

useEffect(() => {
fetchInquiries();
fetchProposals();
});

/**
* 날짜 형식 (YYYY.MM.DD)
*/
Expand Down

0 comments on commit f504968

Please sign in to comment.