From fecf0961c83538b36a2eb5195e21f13ad147821e Mon Sep 17 00:00:00 2001 From: Renard Date: Sun, 22 Sep 2019 13:21:43 -0300 Subject: QuickReply y Repor Modal --- src/Post.js | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 62 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Post.js b/src/Post.js index 6e09dd2..923fea7 100644 --- a/src/Post.js +++ b/src/Post.js @@ -6,11 +6,13 @@ import { Comment, Flag, Embed, - Label + Form, + Button } from "semantic-ui-react"; import Moment from "react-moment"; import "moment/locale/es"; import { avatars } from "./Quotes"; +import ReplyForm from "./ReplyForm"; const ImageModal = ({ href, trigger }) => ( @@ -22,6 +24,53 @@ const ImageModal = ({ href, trigger }) => ( ); +const ReportModal = ({ trigger, threadId, postId, dir }) => ( + + Reportar + + +

+ Para pedir que el post #{postId} sea eliminado, indica una + razón y presiona el botón Reportar. +

+

+ Normalmente eliminamos los mensajes que son considerados spam o flood. +
+ Si deseas pedir la prohibición de acceso a algún usuario persistente, + te recomendamos hacerlo en la sección /bai/. +

+
+ + + +
+
+
+ + + +
+); + +const QuickReplyModal = ({ trigger, currentBoard, id, locked }) => ( + + Respuesta rápida. + + + + + + + + + +); + const Post = ({ index, post, locked, threadId, currentBoard, nightMode }) => { if (post.IS_DELETED > 0) { return ( @@ -183,8 +232,18 @@ const Post = ({ index, post, locked, threadId, currentBoard, nightMode }) => { /> - {locked ? null : Responder} - Reportar + {locked ? null : ( + Responder} + currentBoard={currentBoard} + id={post.parentid} + locked={locked} + /> + )} + Reportar} + postId={post.id} + /> -- cgit v1.2.1-18-gbd029