From 8851c8a665f36380fbc228862f0df19113da8555 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 24 Dec 2024 01:04:57 +0100 Subject: [PATCH] Fix another TSC error --- packages/app/components/auth/PanelTransition.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app/components/auth/PanelTransition.tsx b/packages/app/components/auth/PanelTransition.tsx index c260793..1af2fb6 100644 --- a/packages/app/components/auth/PanelTransition.tsx +++ b/packages/app/components/auth/PanelTransition.tsx @@ -139,7 +139,7 @@ class PanelTransition extends React.PureComponent { onFormSubmit: () => void; } | null = null; - timerIds: Array> = []; // this is a list of a probably running timeouts to clean on unmount + timerIds: Array = []; // this is a list of a probably running timeouts to clean on unmount componentDidUpdate(prevProps: Props) { const nextPanel: PanelId = this.props.Body && (this.props.Body.type as any).panelId; @@ -160,7 +160,7 @@ class PanelTransition extends React.PureComponent { if (forceHeight) { this.timerIds.push( - setTimeout(() => { + window.setTimeout(() => { this.setState({ forceHeight: 0 }); }, 100), ); @@ -537,7 +537,7 @@ class PanelTransition extends React.PureComponent { this.setState({ isHeightDirty: false }); // wait till transition end - this.timerIds.push(setTimeout(resolve, 200)); + this.timerIds.push(window.setTimeout(() => resolve(), 200)); }), ); }