aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-15 21:23:46 -0300
committerLibravatar Renard 2019-09-15 21:23:46 -0300
commit3f0006e2c530a6837598891b66a8d74937b468cf (patch)
tree30240f1308fe0c915a65910e7d6641101a21ca91
parente2a1bfd3d5fb5cbd7e9756de1f4f11b2e604064e (diff)
downloadbai-client-3f0006e2c530a6837598891b66a8d74937b468cf.tar.gz
bai-client-3f0006e2c530a6837598891b66a8d74937b468cf.tar.xz
bai-client-3f0006e2c530a6837598891b66a8d74937b468cf.zip
Divisor entre post original y respuestas
-rw-r--r--src/Board.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Board.js b/src/Board.js
index 6fece58..11a2493 100644
--- a/src/Board.js
+++ b/src/Board.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
-import { Loader, Message, Segment, Header, Image, Comment } from "semantic-ui-react";
+import { Loader, Message, Segment, Header, Image, Comment, Divider } from "semantic-ui-react";
import { Link } from "@reach/router";
import Moment from "react-moment";
import "moment/locale/es";
@@ -76,6 +76,7 @@ class Board extends Component {
<Segment>
<Comment.Group>
<Post index={0} post={thread} locked={thread.locked} threadId={thread.id} dir={this.props.dir} />
+ <Divider />
{thread.replies.map((reply, index, replies) =>
<Post index={thread.total_replies - replies.length + index + 1} post={reply} locked={thread.locked} threadId={thread.id} dir={this.props.dir} />
)}