Merge changes from upstream with the CSS reload fix

This commit is contained in:
Ondřej Hruška committed 2017-07-18 18:58:47 +02:00
commit d69fa9e1f4
98 files changed
+1376 -582

No files matched your search

@@ -186,6 +186,12 @@ export default class MediaGallery extends React.PureComponent {
visible: !this.props.sensitive,
};
componentWillReceiveProps (nextProps) {
if (nextProps.sensitive !== this.props.sensitive) {
this.setState({ visible: !nextProps.sensitive });
}
}
handleOpen = () => {
this.setState({ visible: !this.state.visible });
}