mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Run prettier
This commit is contained in:
parent
da11d9c78e
commit
1c6652f288
1 changed files with 6 additions and 6 deletions
|
|
@ -22,14 +22,14 @@ const windowWidth = () => {
|
|||
const x = w.innerWidth || e.clientWidth || g.clientWidth;
|
||||
|
||||
return x;
|
||||
}
|
||||
};
|
||||
|
||||
class MobileFrame extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
manuallyDisabled: false,
|
||||
automaticallyDisabled: false
|
||||
automaticallyDisabled: false,
|
||||
};
|
||||
|
||||
this.closeFrame = this.closeFrame.bind(this);
|
||||
|
|
@ -41,11 +41,11 @@ class MobileFrame extends Component {
|
|||
}
|
||||
|
||||
componentDidMount() {
|
||||
window.addEventListener("resize", this.toggleBasedOnWindowSize);
|
||||
window.addEventListener('resize', this.toggleBasedOnWindowSize);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
window.removeEventListener("resize", this.toggleBasedOnWindowSize);
|
||||
window.removeEventListener('resize', this.toggleBasedOnWindowSize);
|
||||
}
|
||||
|
||||
closeFrame(e) {
|
||||
|
|
@ -57,9 +57,9 @@ class MobileFrame extends Component {
|
|||
const shouldHide = windowWidth() < SHOW_FRAME_BREAKPOINT;
|
||||
|
||||
if (shouldHide) {
|
||||
this.setState({automaticallyDisabled: true})
|
||||
this.setState({ automaticallyDisabled: true });
|
||||
} else {
|
||||
this.setState({automaticallyDisabled: false})
|
||||
this.setState({ automaticallyDisabled: false });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue