Skip to content

Commit

Permalink
fix: 구독 페이지에서 이미지가 올바르게 뜨도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Collection50 committed Jun 12, 2024
1 parent bee233e commit 5e5e5d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function PostDetailHeader({ postId }: { postId: string }) {
/>

<div className="flex items-center justify-between px-5 border-b-1 border-[#D3D2D1] py-10">
<div className="flex items-center gap-13">
<div className="flex items-center gap-13 relative">
<Image
loader={() => profile}
src={profile}
Expand Down
5 changes: 3 additions & 2 deletions src/app/search/components/BlogList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import BlogCard from './BlogCard';
import { useSearchContext } from '../SearchFetcher/SearchContext';

export default function BlogList() {
const { blogInfoItem } = useSearchContext();
const { blogInfoList } = blogInfoItem;
const {
blogInfoItem: { blogInfoList },
} = useSearchContext();

return (
<div>
Expand Down
6 changes: 3 additions & 3 deletions src/app/subscribe/components/Feed/FeedContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export default function FeedContent({
<div>
<div className="grid grid-cols-3 gap-40 py-50">
{blogPostPreviews?.map(({ blogItem, postItem }) => {
const { postId, title, preview, photo } = postItem;
const { postId, title, profile } = postItem;
return (
<FeedBox
postId={postId}
key={postId}
title={title}
preview={preview}
photo={photo}
preview={profile}
photo={blogItem.profile}
blogItem={blogItem}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/subscribe/components/SubscribeFetcher/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface FollowPostResponse extends PaginationInfo {
blogId: number;
postId: number;
title: string;
preview: string;
profile: string;
photo: string;
};
}>;
Expand Down

0 comments on commit 5e5e5d6

Please sign in to comment.