Skip to content

Commit

Permalink
Feat: 댓글 유저 프로필사진 api 연결 #65
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyeeeah committed Oct 23, 2023
1 parent d2caf4d commit 793e2b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions components/ui/BoardCard/BoardIdCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export default function BoardIdCard({ boardId }: { boardId: number }) {
id={comment.id}
userName={comment.nickname}
content={comment.content}
// TODO: 유저 프로필 사진 연결!
userImage="/Feed/desktop/tempProfilePic.svg"
userImage={comment.userImageUrl}
/>
)),
)}
Expand Down
3 changes: 1 addition & 2 deletions components/ui/BoardCard/ModalBoardCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export default function ModalBoardCard({ boardId }: { boardId: number }) {
id={comment.id}
userName={comment.nickname}
content={comment.content}
// TODO: 유저 프로필 사진 연결!
userImage="/Feed/desktop/tempProfilePic.svg"
userImage={comment.userImageUrl}
/>
)),
)}
Expand Down
2 changes: 2 additions & 0 deletions types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export interface Comment {
id: number;
content: string;
nickname: string;
replyWriter: boolean;
userImageUrl: string;
// children: string[];
}

Expand Down

0 comments on commit 793e2b8

Please sign in to comment.