Skip to content

Commit b22cc35

Browse files
committed
fix: 마이페이지 게시글 postType 적용
1 parent 450fc08 commit b22cc35

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/pages/MyPage/components/WhisperItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { Whisper } from '../type';
1212
import MenuButton from './MenuButton';
1313
import MobileCheckbox from './MobileCheckbox';
1414
import Overlay from './Overlay';
15+
import { POST } from '@/pages/Community/constants';
1516
import { PATH } from '@/routes/constants';
1617

1718
interface WhisperProps {
@@ -85,7 +86,7 @@ const WhisperItem = ({
8586
fontSize={'16px'}
8687
fontWeight={'medium'}
8788
>
88-
텃밭 자랑
89+
{POST.TYPE[item.postType]}
8990
</Flex>
9091
<Box hideFrom={'tablet'} ml="auto">
9192
<ThreeDotsMenuIcon onClick={menuOpen} cursor="pointer" />

src/pages/MyPage/type.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { SetStateAction } from 'react';
2+
import { PostType } from '../Community/types';
23

34
export interface IMainRoute {
45
href: string;
@@ -17,6 +18,7 @@ export interface Whisper {
1718
content: string;
1819
likesCount: number;
1920
commentsCount: number;
21+
postType: PostType;
2022
userInfo: {
2123
userId: number;
2224
profile: string;

0 commit comments

Comments
 (0)