|
|
@ -133,7 +133,7 @@ class SwitchingColumnsArea extends React.PureComponent {
|
|
|
|
mobile: PropTypes.bool,
|
|
|
|
mobile: PropTypes.bool,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
componentWillMount () {
|
|
|
|
UNSAFE_componentWillMount () {
|
|
|
|
if (this.props.mobile) {
|
|
|
|
if (this.props.mobile) {
|
|
|
|
document.body.classList.toggle('layout-single-column', true);
|
|
|
|
document.body.classList.toggle('layout-single-column', true);
|
|
|
|
document.body.classList.toggle('layout-multiple-columns', false);
|
|
|
|
document.body.classList.toggle('layout-multiple-columns', false);
|
|
|
@ -438,7 +438,7 @@ class UI extends React.Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
componentWillReceiveProps (nextProps) {
|
|
|
|
UNSAFE_componentWillReceiveProps (nextProps) {
|
|
|
|
if (nextProps.layout_local_setting !== this.props.layout_local_setting) {
|
|
|
|
if (nextProps.layout_local_setting !== this.props.layout_local_setting) {
|
|
|
|
const layout = layoutFromWindow(nextProps.layout_local_setting);
|
|
|
|
const layout = layoutFromWindow(nextProps.layout_local_setting);
|
|
|
|
|
|
|
|
|
|
|
|