From 4352edd981d2710e45bf3284aec6014c79e85cae Mon Sep 17 00:00:00 2001 From: Jannik Streek Date: Fri, 5 Jan 2024 11:49:35 +0100 Subject: [PATCH] lint --- frontend/src/live-chart/TextInputForm.tsx | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/live-chart/TextInputForm.tsx b/frontend/src/live-chart/TextInputForm.tsx index 4c32b85..6a196d4 100644 --- a/frontend/src/live-chart/TextInputForm.tsx +++ b/frontend/src/live-chart/TextInputForm.tsx @@ -32,7 +32,7 @@ function TextInputForm(): React.ReactElement { const [completedChannelPush, setCompletedChannelPush] = useState(false) const [remainingTextInput, setRemainingTextInput] = useState(MAX_LENGTH) - const handleChange = (text: string) => { + const handleChange = (text: string): void => { setInputText(text) setRemainingTextInput(text.length < MAX_LENGTH ? MAX_LENGTH - text.length : 0) } @@ -93,18 +93,18 @@ function TextInputForm(): React.ReactElement { }} data-testid="test-input-control-text" /> - -
-
{`${remainingTextInput} / ${MAX_LENGTH}`}
-
- -
+ +
+
{`${remainingTextInput} / ${MAX_LENGTH}`}
+
+
+
}