Skip to content
Snippets Groups Projects
Commit 8aab6920 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Less re-rendering

parent 434cf823
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import { closeModal } from '../../../actions/modal';
import Lightbox from '../../../components/lightbox';
import ImageLoader from 'react-imageloader';
import LoadingIndicator from '../../../components/loading_indicator';
import PureRenderMixin from 'react-addons-pure-render-mixin';
const mapStateToProps = state => ({
url: state.getIn(['modal', 'url']),
......@@ -46,6 +47,8 @@ const Modal = React.createClass({
onOverlayClicked: React.PropTypes.func
},
mixins: [PureRenderMixin],
render () {
const { url, ...other } = this.props;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment