From e2a1bfd3d5fb5cbd7e9756de1f4f11b2e604064e Mon Sep 17 00:00:00 2001 From: Renard Date: Sun, 15 Sep 2019 21:21:51 -0300 Subject: Implementación de nuevo estilo de post en boards --- src/Board.js | 46 ++++++++++------------------------------------ 1 file changed, 10 insertions(+), 36 deletions(-) (limited to 'src/Board.js') diff --git a/src/Board.js b/src/Board.js index daa2f39..6fece58 100644 --- a/src/Board.js +++ b/src/Board.js @@ -1,8 +1,9 @@ import React, { Component } from "react"; -import { Loader, Message, Segment, Header, Image, SegmentGroup } from "semantic-ui-react"; +import { Loader, Message, Segment, Header, Image, Comment } from "semantic-ui-react"; import { Link } from "@reach/router"; import Moment from "react-moment"; import "moment/locale/es"; +import Post from "./Post"; class Board extends Component { constructor() { super(); @@ -71,42 +72,15 @@ class Board extends Component {
{thread.subject} - - {thread.name} ― -
- - {thread.file !== "" ? - - - - - : null} - -
- - - - {thread.replies.map((reply, index, replies) => - - {reply.file !== "" ? - - - - : null} - - -
- #{thread.total_replies - replies.length + index + 1} {reply.name} - -
- -
-
-
- - )} - + + + + {thread.replies.map((reply, index, replies) => + + )} + + )}
-- cgit v1.2.1-18-gbd029