Skip to content

Commit

Permalink
Merge pull request #75 from Beside-Potenday/seungbeom
Browse files Browse the repository at this point in the history
fix: type 수정
  • Loading branch information
seung365 authored Aug 7, 2024
2 parents 160a6d3 + 264ad7f commit ee8659b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/pages/MyPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -84,7 +85,7 @@ export const MyPage = () => {
univData?.content.map((email, index) => (
<Box key={email.createDate} w="100%">
<HStack justify="space-between" mb={2}>
<Text fontWeight="bold">{email.subjet}</Text>
<Text fontWeight="bold">{email.subject}</Text>
<Text fontSize="sm" color="gray.500">
{email.createDate}
</Text>
Expand All @@ -102,7 +103,7 @@ export const MyPage = () => {
businessData?.content.map((email, index) => (
<Box key={email.createDate} w="100%">
<HStack justify="space-between" mb={2}>
<Text fontWeight="bold">{email.subjet}</Text>
<Text fontWeight="bold">{email.subject}</Text>
<Text fontSize="sm" color="gray.500">
{email.createDate}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}

0 comments on commit ee8659b

Please sign in to comment.