diff --git a/src/app/blog/[blogId]/post/[postId]/components/PostDetailFetcher/types.ts b/src/app/blog/[blogId]/post/[postId]/components/PostDetailFetcher/types.ts index 0809ad7..d4bb630 100644 --- a/src/app/blog/[blogId]/post/[postId]/components/PostDetailFetcher/types.ts +++ b/src/app/blog/[blogId]/post/[postId]/components/PostDetailFetcher/types.ts @@ -27,6 +27,7 @@ export interface PostDetailResponse { categoryName: string; photoUrls: string[]; + profile: string; postStickerItems: Sticker[]; postHashtags: string[]; diff --git a/src/app/blog/[blogId]/post/[postId]/components/PostDetailHeader/index.tsx b/src/app/blog/[blogId]/post/[postId]/components/PostDetailHeader/index.tsx index b73f8ca..402bc35 100644 --- a/src/app/blog/[blogId]/post/[postId]/components/PostDetailHeader/index.tsx +++ b/src/app/blog/[blogId]/post/[postId]/components/PostDetailHeader/index.tsx @@ -5,13 +5,14 @@ import { motion } from 'framer-motion'; import { Button, Copy, Input } from '@/components/Common'; import { formatDate } from '@/utils'; import { usePortal } from '@/hooks'; +import Image from 'next/image'; import { usePostDetailContext } from '../PostDetailFetcher/PostDetailContext'; import { useHandlePostDetail } from './hooks'; export default function PostDetailHeader({ postId }: { postId: string }) { const { - postDetail: { title, createdAt, memberId, nickname }, + postDetail: { title, createdAt, memberId, nickname, profile }, loginMemberId, } = usePostDetailContext(); @@ -50,7 +51,14 @@ export default function PostDetailHeader({ postId }: { postId: string }) {
{nickname}
{formatDate(createdAt)}