Update src/components/NumberInput/NumberInput.tsx

Co-authored-by: Timothy Z. <timothy@stremio.com>
This commit is contained in:
Botsy 2025-02-12 15:46:52 +02:00 committed by GitHub
parent aa3dedf8be
commit 10a36d2c4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,7 +89,7 @@ const NumberInput = forwardRef<HTMLInputElement, Props>(({ defaultValue, showBut
</Button>
: null
}
<div className={classnames(styles['number-display'], showButtons ? styles['buttons-container'] : '')}>
<div className={classnames(styles['number-display'], { [styles['buttons-container']]: showButtons })}>
{
props.label ?
<div className={styles['label']}>{props.label}</div>