diff options
author | Renard | 2019-09-15 20:49:47 -0300 |
---|---|---|
committer | Renard | 2019-09-15 20:49:47 -0300 |
commit | 0729ffd3009025b690a275fe68ea5eac333425e9 (patch) | |
tree | abc7f1681e579707ee359670130e695ffc17dbad /src/BBSThread.js | |
parent | 7d56318f997e37da8df5790a96594d15afdabec9 (diff) | |
download | bai-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.js | 20 |
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} /> |