Skip to content

Commit

Permalink
Fix RepliesModal
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Apr 29, 2018
1 parent b31cfcf commit f19f731
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/Modal/RepliesModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ export default function RepliesModal({ replies, onConnect, onModalClose }) {
<ul className="items">
{replies.map(reply => {
const replyId = reply.getIn(['reply', 'id']);
const replyType = reply.getIn(['reply', 'type']);
const createdAt = moment(reply.get('createdAt'));
return (
<li key={replyId} className="root">
<header className="section">
被標示為:<strong title={TYPE_DESC[reply.get('type')]}>
{TYPE_NAME[reply.get('type')]}
被標示為:<strong title={TYPE_DESC[replyType]}>
{TYPE_NAME[replyType]}
</strong>
</header>
<section className="section">
<ExpandableText wordCount={40}>
{nl2br(linkify(reply.get('text')))}
{nl2br(linkify(reply.getIn(['reply', 'text'])))}
</ExpandableText>
</section>
<footer>
Expand Down

0 comments on commit f19f731

Please sign in to comment.