Merge changes from upstream with the CSS reload fix

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

View File

@@ -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 });
}