aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-11-19 15:53:25 +0800
committerAugust Skare <post@augustskare.no>2018-11-19 15:53:25 +0800
commit3ad857be6c845e3ed09eccff951efdf604e4ca64 (patch)
treeac8d9d4ec849e4955073a7b2e9e6295bbc7bdba0 /packages/dev-tools-pages
parent7fec2f630c45347b1f066cbf24a46add83516529 (diff)
downloaddexon-sol-tools-3ad857be6c845e3ed09eccff951efdf604e4ca64.tar
dexon-sol-tools-3ad857be6c845e3ed09eccff951efdf604e4ca64.tar.gz
dexon-sol-tools-3ad857be6c845e3ed09eccff951efdf604e4ca64.tar.bz2
dexon-sol-tools-3ad857be6c845e3ed09eccff951efdf604e4ca64.tar.lz
dexon-sol-tools-3ad857be6c845e3ed09eccff951efdf604e4ca64.tar.xz
dexon-sol-tools-3ad857be6c845e3ed09eccff951efdf604e4ca64.tar.zst
dexon-sol-tools-3ad857be6c845e3ed09eccff951efdf604e4ca64.zip
fix timeout type in animation component
Diffstat (limited to 'packages/dev-tools-pages')
-rw-r--r--packages/dev-tools-pages/ts/components/Animations/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/dev-tools-pages/ts/components/Animations/index.tsx b/packages/dev-tools-pages/ts/components/Animations/index.tsx
index 95af4448c..da1b31917 100644
--- a/packages/dev-tools-pages/ts/components/Animations/index.tsx
+++ b/packages/dev-tools-pages/ts/components/Animations/index.tsx
@@ -20,7 +20,7 @@ class BaseAnimation extends React.PureComponent<AnimationProps, AnimationState>
height: undefined,
width: undefined,
};
- private _timeout = null as any;
+ private _timeout = undefined as number;
public componentDidMount(): void {
this._updateAnimationSize();
@@ -55,7 +55,7 @@ class BaseAnimation extends React.PureComponent<AnimationProps, AnimationState>
private readonly _handleResize = () => {
clearTimeout(this._timeout);
- this._timeout = setTimeout(this._updateAnimationSize, 50);
+ this._timeout = window.setTimeout(this._updateAnimationSize, 50);
};
private readonly _updateAnimationSize = () => {