in frontend/common/containers/modal.js [14:23]
componentWillReceiveProps({ show }) {
if (show !== this.props.show) {
// Prop controlling visibility has changed => modify state accordingly
if (show) {
this.showModal();
} else {
this.hideModal();
}
}
}