From 6a1d09aede3440a367ff575212eef97232f4369d Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 16 Sep 2019 16:18:47 -0300 Subject: Post ID segĂșn tipo de board --- src/Post.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/Post.js') diff --git a/src/Post.js b/src/Post.js index 4ccb7d0..162afca 100644 --- a/src/Post.js +++ b/src/Post.js @@ -23,7 +23,7 @@ const ImageModal = ({ href, trigger }) => ( ); -const Post = ({ index, post, locked, dir, threadId }) => { +const Post = ({ index, post, locked, threadId, currentBoard }) => { if (post.IS_DELETED > 0) { return ( @@ -31,7 +31,9 @@ const Post = ({ index, post, locked, dir, threadId }) => { src={`https://bienvenidoainternet.org/static/css/img/picnicbdy.gif`} /> - #{index + 1} + + #{currentBoard.board_type === 0 ? post.id : index + 1} +
@@ -62,7 +64,7 @@ const Post = ({ index, post, locked, dir, threadId }) => { /> - #{index + 1}{" "} + #{currentBoard.board_type === 0 ? post.id : index + 1}{" "} @@ -86,12 +88,12 @@ const Post = ({ index, post, locked, dir, threadId }) => { {post.file !== "" ? (
} /> @@ -100,7 +102,9 @@ const Post = ({ index, post, locked, dir, threadId }) => {
) : null}
-- cgit v1.2.1-18-gbd029