From 7fcd6876eb0bd7f76f6842c958406eec0dfa1933 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 22 Jun 2020 16:29:04 +0300 Subject: [PATCH] fix: react runtime warning in --- src/renderer/components/input/input.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/input/input.tsx b/src/renderer/components/input/input.tsx index 15e4ca95cf..7993e2d83c 100644 --- a/src/renderer/components/input/input.tsx +++ b/src/renderer/components/input/input.tsx @@ -243,10 +243,9 @@ export class Input extends React.Component { } render() { - const { multiLine, showValidationLine, validators, theme, maxRows, children, ...inputProps } = this.props; - let { className, iconLeft, iconRight } = this.props; - const { maxLength, rows, disabled } = this.props; - const { focused, dirty, valid, validating, errors } = this.state; + var { multiLine, showValidationLine, validators, theme, maxRows, iconLeft, iconRight, children, ...inputProps } = this.props; + var { className, maxLength, rows, disabled } = this.props; + var { focused, dirty, valid, validating, errors } = this.state; className = cssNames("Input", className, { [`theme ${theme}`]: theme,