Skip to content

Commit 793e2b8

Browse files
committed
Feat: 댓글 유저 프로필사진 api 연결 #65
1 parent d2caf4d commit 793e2b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/ui/BoardCard/BoardIdCard.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export default function BoardIdCard({ boardId }: { boardId: number }) {
2929
id={comment.id}
3030
userName={comment.nickname}
3131
content={comment.content}
32-
// TODO: 유저 프로필 사진 연결!
33-
userImage="/Feed/desktop/tempProfilePic.svg"
32+
userImage={comment.userImageUrl}
3433
/>
3534
)),
3635
)}

components/ui/BoardCard/ModalBoardCard.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export default function ModalBoardCard({ boardId }: { boardId: number }) {
2929
id={comment.id}
3030
userName={comment.nickname}
3131
content={comment.content}
32-
// TODO: 유저 프로필 사진 연결!
33-
userImage="/Feed/desktop/tempProfilePic.svg"
32+
userImage={comment.userImageUrl}
3433
/>
3534
)),
3635
)}

types/types.ts

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export interface Comment {
6161
id: number;
6262
content: string;
6363
nickname: string;
64+
replyWriter: boolean;
65+
userImageUrl: string;
6466
// children: string[];
6567
}
6668

0 commit comments

Comments
 (0)