diff --git a/src/pages/MyPage/index.tsx b/src/pages/MyPage/index.tsx index 1898116..03c4805 100644 --- a/src/pages/MyPage/index.tsx +++ b/src/pages/MyPage/index.tsx @@ -26,6 +26,7 @@ export const MyPage = () => { const { univData, univLoading, univError } = useGetMailUniv(univPage, 5); const { businessData, businessLoading, businessError } = useGetMailBusiness(businessPage, 5); + const handlePrev = () => { if (isJob === 'univ') { setUnivPage((prev) => Math.max(prev - 1, 0)); @@ -84,7 +85,7 @@ export const MyPage = () => { univData?.content.map((email, index) => ( - {email.subjet} + {email.subject} {email.createDate} @@ -102,7 +103,7 @@ export const MyPage = () => { businessData?.content.map((email, index) => ( - {email.subjet} + {email.subject} {email.createDate} diff --git a/src/types/index.ts b/src/types/index.ts index c0b90a0..97f4d89 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -63,6 +63,6 @@ export interface MailGetData { export interface MailListResponse { totalPages: number; - content: [{ subjet: string; body: string; createDate: string }]; + content: Array<{ subject: string; body: string; createDate: string }>; pageable: { pageNumber: number; pageSize: number }; }