diff --git a/src/front-end.jsx b/src/front-end.jsx
index adc3d28..96aeda3 100644
--- a/src/front-end.jsx
+++ b/src/front-end.jsx
@@ -47,6 +47,7 @@ class FrontEnd extends PureComponent {
+
+
+
+
+
+
+

+
+
+
+ );
+ }
+
+ handleCloseClick = (evt) => {
+ let { onClose } = this.props;
+ if (onClose) {
+ onClose({
+ type: 'close',
+ target: this,
+ });
+ }
+ }
+}
+
+if (process.env.NODE_ENV !== 'production') {
+ const PropTypes = require('prop-types');
+
+ ImageDialog.propTypes = {
+ imageURL: PropTypes.string,
+ onClose: PropTypes.func,
+ };
+}
+
+export {
+ ImageDialog as default,
+ ImageDialog,
+};
diff --git a/src/widgets/post-view.jsx b/src/widgets/post-view.jsx
index c6a4fbb..ef2d413 100644
--- a/src/widgets/post-view.jsx
+++ b/src/widgets/post-view.jsx
@@ -3,10 +3,18 @@ import Moment from 'moment';
import React, { PureComponent } from 'react';
import HTML from 'widgets/html';
+import ImageDialog from 'widgets/image-dialog';
class PostView extends PureComponent {
static displayName = 'PostView';
+ constructor(props) {
+ super(props);
+ this.state = {
+ imageURL: null,
+ };
+ }
+
render() {
let { post, author, transform } = this.props;
let title = _.get(post, 'title.rendered', '');
@@ -23,12 +31,41 @@ class PostView extends PureComponent {
{name}