diff options
author | Renard | 2019-09-13 11:53:00 -0300 |
---|---|---|
committer | Renard | 2019-09-13 11:53:00 -0300 |
commit | f68db07a9d5803c7b8881dbcb2f6fa4c6da47f73 (patch) | |
tree | 8657a62de5eaadaffa9bfd168066642345a0f8c9 | |
parent | 5565777306d2a070fb3c222734b0a2e9c8241ec8 (diff) | |
download | bai-client-f68db07a9d5803c7b8881dbcb2f6fa4c6da47f73.tar.gz bai-client-f68db07a9d5803c7b8881dbcb2f6fa4c6da47f73.tar.xz bai-client-f68db07a9d5803c7b8881dbcb2f6fa4c6da47f73.zip |
Manejo de posts eliminados
-rw-r--r-- | src/BBSThread.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/BBSThread.js b/src/BBSThread.js index 025f258..e54588b 100644 --- a/src/BBSThread.js +++ b/src/BBSThread.js @@ -1,5 +1,5 @@ import React, { Component } from "react"; -import { Header, Icon, Loader, Message } from "semantic-ui-react"; +import { Header, Icon, Loader, Message, Segment } from "semantic-ui-react"; import Moment from "react-moment"; import "moment/locale/es"; import Post from "./Post"; @@ -76,7 +76,11 @@ class BBSThread extends Component { {posts.map((post, index) => post.IS_DELETED === 0 ? - (<Post key={index} index={index} post={post} locked={locked} dir={this.props.dir} />) : null) + (<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>) + ) } <a href={`https://bienvenidoainternet.org/cgi/api/thread?dir=${this.props.dir}&id=${this.props.id}`}>API Link</a> |