Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 0c69f06

Browse files
committed
Show username in card
1 parent b4ee1bf commit 0c69f06

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

velog-frontend/src/components/user/UserHistory/UserHistory.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ import { type UserHistoryItem } from 'store/modules/profile';
66
import './UserHistory.scss';
77

88
type HistoryItemProps = {
9+
username: string,
910
item: UserHistoryItem,
1011
};
1112

12-
const HistoryItem = ({ item }: HistoryItemProps) => {
13+
const HistoryItem = ({ item, username }: HistoryItemProps) => {
1314
const { type } = item;
1415
return (
1516
<div className="HistoryItem">
1617
{type === 'comment' ? (
1718
<div className="message">
18-
<CommentIcon className="comment" />@velopert님이 댓글을 남기셨습니다.
19+
<CommentIcon className="comment" />@{username}님이 댓글을 남기셨습니다.
1920
</div>
2021
) : (
2122
<div className="message">
2223
<HeartIcon className="heart" />
23-
@velopert님이 이 포스트를 좋아합니다.
24+
@{username}님이 이 포스트를 좋아합니다.
2425
</div>
2526
)}
2627
<div className="mini-postcard">

0 commit comments

Comments
 (0)