Commit c1366eb2 authored by afc163's avatar afc163

update code style

parent 86a2d26d
...@@ -66,7 +66,6 @@ class BasicLayout extends React.PureComponent { ...@@ -66,7 +66,6 @@ class BasicLayout extends React.PureComponent {
location: PropTypes.object, location: PropTypes.object,
breadcrumbNameMap: PropTypes.object, breadcrumbNameMap: PropTypes.object,
} }
state = { state = {
isMobile, isMobile,
}; };
...@@ -78,9 +77,9 @@ class BasicLayout extends React.PureComponent { ...@@ -78,9 +77,9 @@ class BasicLayout extends React.PureComponent {
}; };
} }
componentDidMount() { componentDidMount() {
enquireScreen((b) => { enquireScreen((mobile) => {
this.setState({ this.setState({
isMobile: !!b, isMobile: mobile,
}); });
}); });
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment