From 077852f2659cbf05dc88ebc61860a1ee655a35e3 Mon Sep 17 00:00:00 2001 From: Renard Date: Fri, 13 Sep 2019 14:12:41 -0300 Subject: Image modal --- src/Post.js | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'src/Post.js') diff --git a/src/Post.js b/src/Post.js index 054bc58..8260d1f 100644 --- a/src/Post.js +++ b/src/Post.js @@ -1,11 +1,20 @@ import React from "react"; -import { Segment, Header, Image, Label, Icon } from "semantic-ui-react"; +import { Segment, Header, Image, Label, Icon, Modal } from "semantic-ui-react"; import Moment from "react-moment"; import "moment/locale/es"; +const ImageModal = ({ href, trigger }) => ( + + + + + + + +); + const Post = ({ index, post, locked, dir }) => { const filesize = require('filesize'); - let user_id = post.timestamp_formatted.split(" ID:")[1]; return ( @@ -16,15 +25,16 @@ const Post = ({ index, post, locked, dir }) => { - + {user_id ? : null} {post.file !== "" ? - - - + + } /> : null}
-- cgit v1.2.1-18-gbd029