From 264ad7f71f753a757ca93f35a7677c9865c56a49 Mon Sep 17 00:00:00 2001 From: seung365 Date: Thu, 8 Aug 2024 02:27:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20type=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/MyPage/index.tsx | 5 +++-- src/types/index.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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 }; }