aboutsummaryrefslogtreecommitdiff
path: root/src/BBSThread.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-15 20:49:47 -0300
committerLibravatar Renard 2019-09-15 20:49:47 -0300
commit0729ffd3009025b690a275fe68ea5eac333425e9 (patch)
treeabc7f1681e579707ee359670130e695ffc17dbad /src/BBSThread.js
parent7d56318f997e37da8df5790a96594d15afdabec9 (diff)
downloadbai-client-0729ffd3009025b690a275fe68ea5eac333425e9.tar.gz
bai-client-0729ffd3009025b690a275fe68ea5eac333425e9.tar.xz
bai-client-0729ffd3009025b690a275fe68ea5eac333425e9.zip
Nuevo formato de post
Diffstat (limited to 'src/BBSThread.js')
-rw-r--r--src/BBSThread.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/BBSThread.js b/src/BBSThread.js
index dd220ce..b81264e 100644
--- a/src/BBSThread.js
+++ b/src/BBSThread.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
-import { Header, Icon, Loader, Message, Segment } from "semantic-ui-react";
+import { Header, Icon, Loader, Message, Segment, Comment } from "semantic-ui-react";
import Moment from "react-moment";
import "moment/locale/es";
import Post from "./Post";
@@ -74,14 +74,16 @@ class BBSThread extends Component {
</Header.Subheader>
</Header>
- {posts.map((post, index) =>
- post.IS_DELETED === 0 ?
- (<Post key={index} index={index} post={post} locked={locked} dir={this.props.dir} />) :
- (<Segment secondary>
- #{index} Eliminado <Moment fromNow unix locale="es" date={post.timestamp} />
- </Segment>)
- )
- }
+ <Comment.Group>
+ {posts.map((post, index) =>
+ post.IS_DELETED === 0 ?
+ (<Post key={index} index={index} post={post} locked={locked} dir={this.props.dir} threadId={id} />) :
+ (<Segment secondary>
+ #{index} Eliminado <Moment fromNow unix locale="es" date={post.timestamp} />
+ </Segment>)
+ )
+ }
+ </Comment.Group>
<ReplyForm dir={this.props.dir} parent={id} />