aboutsummaryrefslogtreecommitdiff
path: root/src/Thread.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-22 00:28:21 -0300
committerLibravatar Renard 2019-09-22 00:28:21 -0300
commit4f42b5a2b35cf61d6042562195755699f9de177f (patch)
treed874b49c0aeaa1d98ad9aea978c2f417b6788806 /src/Thread.js
parent8db5e7649c1d3ceba35cc52e191da1d264994f45 (diff)
downloadbai-client-4f42b5a2b35cf61d6042562195755699f9de177f.tar.gz
bai-client-4f42b5a2b35cf61d6042562195755699f9de177f.tar.xz
bai-client-4f42b5a2b35cf61d6042562195755699f9de177f.zip
Nightmode
Diffstat (limited to 'src/Thread.js')
-rw-r--r--src/Thread.js21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/Thread.js b/src/Thread.js
index b390f54..fe9efff 100644
--- a/src/Thread.js
+++ b/src/Thread.js
@@ -6,7 +6,8 @@ import {
Message,
Comment,
Breadcrumb,
- Divider
+ Divider,
+ Container
} from "semantic-ui-react";
import Moment from "react-moment";
import "moment/locale/es";
@@ -100,6 +101,7 @@ class Thread extends Component {
render() {
const { isLoading, error } = this.state;
+ const { nightMode } = this.props;
if (isLoading) {
return (
@@ -135,8 +137,8 @@ class Thread extends Component {
document.title = subject + " - " + currentBoard.name + "@B.a.I";
return (
- <React.Fragment>
- <Breadcrumb>
+ <Container className={nightMode ? "inverted" : ""}>
+ <Breadcrumb className={nightMode ? "inverted" : ""}>
<Breadcrumb.Section link as={Link} to="/">
Home
</Breadcrumb.Section>
@@ -147,7 +149,7 @@ class Thread extends Component {
<Breadcrumb.Divider icon="right arrow" />
<Breadcrumb.Section active>{subject}</Breadcrumb.Section>
</Breadcrumb>
- <Header as="h1">
+ <Header as="h1" inverted={nightMode}>
<Header.Content className="postMessage">
{subject}
{locked ? <Icon name="lock" /> : null}
@@ -162,7 +164,7 @@ class Thread extends Component {
</Header>
<Divider />
- <Comment.Group>
+ <Comment.Group className={nightMode ? "inverted" : ""}>
{posts.map((post, index) => (
<Post
key={index}
@@ -175,14 +177,19 @@ class Thread extends Component {
))}
</Comment.Group>
- <ReplyForm currentBoard={currentBoard} parent={id} locked={locked} />
+ <ReplyForm
+ currentBoard={currentBoard}
+ parent={id}
+ locked={locked}
+ nightMode={nightMode}
+ />
<a
href={`https://bienvenidoainternet.org/cgi/api/thread?dir=${this.props.dir}&id=${this.props.id}`}
>
API Link
</a>
- </React.Fragment>
+ </Container>
);
}
}