diff options
author | August Skare <post@augustskare.no> | 2018-11-19 16:55:03 +0800 |
---|---|---|
committer | August Skare <post@augustskare.no> | 2018-11-19 16:55:03 +0800 |
commit | f519f5744e1742e13afe0cd915d6e314fcb579e8 (patch) | |
tree | 320e2a99a27c21ef8983054dc7cdaa13d79fc3ce /packages/dev-tools-pages/ts/components/Animations/index.tsx | |
parent | fa24ec1a04577590c791f344d5a2bed27abc2663 (diff) | |
download | dexon-0x-contracts-f519f5744e1742e13afe0cd915d6e314fcb579e8.tar.gz dexon-0x-contracts-f519f5744e1742e13afe0cd915d6e314fcb579e8.tar.zst dexon-0x-contracts-f519f5744e1742e13afe0cd915d6e314fcb579e8.zip |
remove new-lines between methods in classes
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Animations/index.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/Animations/index.tsx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/packages/dev-tools-pages/ts/components/Animations/index.tsx b/packages/dev-tools-pages/ts/components/Animations/index.tsx index da1b31917..da3e78193 100644 --- a/packages/dev-tools-pages/ts/components/Animations/index.tsx +++ b/packages/dev-tools-pages/ts/components/Animations/index.tsx @@ -21,16 +21,13 @@ class BaseAnimation extends React.PureComponent<AnimationProps, AnimationState> width: undefined, }; private _timeout = undefined as number; - public componentDidMount(): void { this._updateAnimationSize(); window.addEventListener('resize', this._handleResize); } - public componentWillUnmount(): void { window.removeEventListener('resize', this._handleResize); } - public render(): React.ReactNode { const { animationData } = this.props; const height = this.state.height || this.props.height; @@ -52,12 +49,10 @@ class BaseAnimation extends React.PureComponent<AnimationProps, AnimationState> </Container> ); } - private readonly _handleResize = () => { clearTimeout(this._timeout); this._timeout = window.setTimeout(this._updateAnimationSize, 50); }; - private readonly _updateAnimationSize = () => { const windowWidth = window.innerWidth; let width; |