aboutsummaryrefslogtreecommitdiff
path: root/src/BBSThread.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-12 00:24:37 -0300
committerLibravatar Renard 2019-09-12 00:24:37 -0300
commit8ea1b415d5c288908d687e6ee8d0c275089b1039 (patch)
treecae65f88154a6d681c45e8b138c4fde1046fc437 /src/BBSThread.js
parent0a5b872a0762467697d3c662cc41c922294505ff (diff)
downloadbai-client-8ea1b415d5c288908d687e6ee8d0c275089b1039.tar.gz
bai-client-8ea1b415d5c288908d687e6ee8d0c275089b1039.tar.xz
bai-client-8ea1b415d5c288908d687e6ee8d0c275089b1039.zip
Fix: Imagenes y componentUpdate
Diffstat (limited to 'src/BBSThread.js')
-rw-r--r--src/BBSThread.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/BBSThread.js b/src/BBSThread.js
index bac1b9a..9d11537 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, Image, Button } from "semantic-ui-react";
import Moment from "react-moment";
import "moment/locale/es";
@@ -75,13 +75,16 @@ class BBSThread extends Component {
<Moment fromNow unix locale="es" date={post.timestamp} />
</Header.Subheader>
</Header>
- <Segment attached>
- <div dangerouslySetInnerHTML={{ __html: post.message }} />
- </Segment>
- <Segment attached='bottom' textAlign='right' tertiary style={{ "padding": "0.5em", "font-size": "0.75em" }}>
- <Icon name="reply" /> Responder ― &nbsp;
- <Icon name="exclamation circle" /> Reportar
- </Segment>
+
+ <Segment.Group horizontal>
+ {post.file != "" ? <Segment compact> <Image src={`https://bienvenidoainternet.org/${this.props.dir}/thumb/${post.thumb}`} /></Segment> : null}
+ <Segment>
+ <div className="postMessage" dangerouslySetInnerHTML={{ __html: post.message }} />
+ <Icon name="reply" />Responder
+
+ <Icon name="exclamation circle" />Reportar
+ </Segment>
+ </Segment.Group>
</Segment.Group>
) : null)
}