aboutsummaryrefslogtreecommitdiff
path: root/src/Board.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-10-01 15:59:47 -0300
committerLibravatar Renard 2019-10-01 15:59:47 -0300
commit905c7c8c791a0f174d6c4961522eb596586c4d2c (patch)
tree3a3478d228fb751d596e766a9769a9d8e970d345 /src/Board.js
parent3292f9e7aa33a27230eb927c03c9237a257cc3d8 (diff)
downloadbai-client-905c7c8c791a0f174d6c4961522eb596586c4d2c.tar.gz
bai-client-905c7c8c791a0f174d6c4961522eb596586c4d2c.tar.xz
bai-client-905c7c8c791a0f174d6c4961522eb596586c4d2c.zip
Modal creación de hilos
Diffstat (limited to 'src/Board.js')
-rw-r--r--src/Board.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/Board.js b/src/Board.js
index c30844d..6992bd3 100644
--- a/src/Board.js
+++ b/src/Board.js
@@ -6,10 +6,12 @@ import {
Header,
Comment,
Divider,
- Breadcrumb
+ Breadcrumb,
+ Button
} from "semantic-ui-react";
import { Link } from "@reach/router";
import Post from "./Post";
+import NewThread from "./NewThread";
class Board extends Component {
constructor() {
super();
@@ -147,8 +149,16 @@ class Board extends Component {
dangerouslySetInnerHTML={{ __html: currentBoard.postarea_desc }}
></div>
</p>
- <Link to={`/list/${currentBoard.dir}`}>Lista de hilos</Link>
</Segment>
+ <Button.Group widths={5} basic={!nightMode} secondary={nightMode}>
+ <Button as={Link} to={`/list/${currentBoard.dir}`}>
+ Lista de hilos
+ </Button>
+ <NewThread
+ trigger={<Button>Crear un hilo</Button>}
+ currentBoard={currentBoard}
+ />
+ </Button.Group>
{threadList.map(thread => (
<Segment.Group key={"seg_" + thread.timestamp + thread.id}>