From 87f100049cb00ab809396addf7e1f868ea3fea02 Mon Sep 17 00:00:00 2001
From: Renard
Date: Thu, 12 Sep 2019 15:40:15 -0300
Subject: Post as object
---
src/BBSThread.js | 29 ++---------------------------
1 file changed, 2 insertions(+), 27 deletions(-)
(limited to 'src/BBSThread.js')
diff --git a/src/BBSThread.js b/src/BBSThread.js
index 68fca92..747682b 100644
--- a/src/BBSThread.js
+++ b/src/BBSThread.js
@@ -2,6 +2,7 @@ import React, { Component } from "react";
import { Header, Icon, Loader, Message, Segment, Image, Label } from "semantic-ui-react";
import Moment from "react-moment";
import "moment/locale/es";
+import Post from "./Post";
class BBSThread extends Component {
@@ -76,33 +77,7 @@ class BBSThread extends Component {
{posts.map((post, index) =>
post.IS_DELETED === 0 ?
- (
-
- #{index + 1} {post.name}
-
-
-
-
-
-
- {post.file != "" ?
-
-
-
-
- : null}
-
-
-
- {locked ? null :
- ()}
-
-
-
-
- ) : null)
+ () : null)
}
API Link
--
cgit v1.2.1-18-gbd029