aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2019-10-05 13:17:40 -0300
committerLibravatar Renard 2019-10-05 13:17:40 -0300
commitd952d13107ddc4b78e7c9945ac96959b7036f222 (patch)
treee5d62fbcb67a30c24ec7cb254aa55cfb7ef201d2
parentfb94936553b5a9a9b853f3a81fda341948d7df98 (diff)
downloadbai-client-d952d13107ddc4b78e7c9945ac96959b7036f222.tar.gz
bai-client-d952d13107ddc4b78e7c9945ac96959b7036f222.tar.xz
bai-client-d952d13107ddc4b78e7c9945ac96959b7036f222.zip
Small bug fixes
-rw-r--r--src/App.js2
-rw-r--r--src/Board.js8
-rw-r--r--src/Settings.js6
3 files changed, 6 insertions, 10 deletions
diff --git a/src/App.js b/src/App.js
index 0d667f5..7b16769 100644
--- a/src/App.js
+++ b/src/App.js
@@ -85,7 +85,7 @@ class App extends Component {
settings[key] = defaultSettings[key];
}
});
- localStorage.setItem("settings", JSON.stringify(defaultSettings));
+ localStorage.setItem("settings", JSON.stringify(settings));
this.setState({ nightMode: settings.nightMode });
}
}
diff --git a/src/Board.js b/src/Board.js
index 6992bd3..5560ada 100644
--- a/src/Board.js
+++ b/src/Board.js
@@ -144,11 +144,9 @@ class Board extends Component {
{currentBoard.name}
<Header.Subheader>/{currentBoard.dir}/</Header.Subheader>
</Header>
- <p>
- <div
- dangerouslySetInnerHTML={{ __html: currentBoard.postarea_desc }}
- ></div>
- </p>
+ <div
+ dangerouslySetInnerHTML={{ __html: currentBoard.postarea_desc }}
+ ></div>
</Segment>
<Button.Group widths={5} basic={!nightMode} secondary={nightMode}>
<Button as={Link} to={`/list/${currentBoard.dir}`}>
diff --git a/src/Settings.js b/src/Settings.js
index 209fed5..dbfbcf7 100644
--- a/src/Settings.js
+++ b/src/Settings.js
@@ -28,8 +28,8 @@ class SettingsModal extends Component {
super(props);
this.state = {
homeSound: "msn",
- threadSound: "dootdoot",
- nightMode: true,
+ threadSound: "msn",
+ nightMode: false,
notifyOnHome: true,
notifyOnThread: true,
autoUpdateThreads: true,
@@ -160,7 +160,6 @@ class SettingsModal extends Component {
Sonido de notificación:{" "}
<Dropdown
inline
- select
scrolling
options={notificationSounds}
value={homeSound}
@@ -180,7 +179,6 @@ class SettingsModal extends Component {
Sonido de notificación :{" "}
<Dropdown
inline
- select
scrolling
options={notificationSounds}
value={threadSound}