Update src/components/NumberInput/NumberInput.tsx

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

View file

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