diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index fb0a83f4d61e048940a8206ea7602adbd923c47d..959225a2f1658b3240228cf46f1eb5193e750a67 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -66,7 +66,6 @@ class BasicLayout extends React.PureComponent { location: PropTypes.object, breadcrumbNameMap: PropTypes.object, } - state = { isMobile, }; @@ -78,9 +77,9 @@ class BasicLayout extends React.PureComponent { }; } componentDidMount() { - enquireScreen((b) => { + enquireScreen((mobile) => { this.setState({ - isMobile: !!b, + isMobile: mobile, }); }); }