Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek committed Jan 5, 2024
1 parent 2215a4e commit 4352edd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions frontend/src/live-chart/TextInputForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function TextInputForm(): React.ReactElement {
const [completedChannelPush, setCompletedChannelPush] = useState<boolean>(false)
const [remainingTextInput, setRemainingTextInput] = useState<number>(MAX_LENGTH)

const handleChange = (text: string) => {
const handleChange = (text: string): void => {
setInputText(text)
setRemainingTextInput(text.length < MAX_LENGTH ? MAX_LENGTH - text.length : 0)
}
Expand Down Expand Up @@ -93,18 +93,18 @@ function TextInputForm(): React.ReactElement {
}}
data-testid="test-input-control-text"
/>
</Form.Group>
<div className="d-flex w-full">
<div className="flex-grow-1">{`${remainingTextInput} / ${MAX_LENGTH}`}</div>
<div>
<Button type="submit" variant="primary" className="mt-1">
<FormattedMessage
id="live.text.button.submit"
defaultMessage="Add Text"
/>
</Button>
</div>
</Form.Group>
<div className="d-flex w-full">
<div className="flex-grow-1">{`${remainingTextInput} / ${MAX_LENGTH}`}</div>
<div>
<Button type="submit" variant="primary" className="mt-1">
<FormattedMessage
id="live.text.button.submit"
defaultMessage="Add Text"
/>
</Button>
</div>
</div>
</Form>
}
</div>
Expand Down

0 comments on commit 4352edd

Please sign in to comment.