mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
Update src/components/NumberInput/NumberInput.tsx
Co-authored-by: Timothy Z. <timothy@stremio.com>
This commit is contained in:
parent
d7974babdd
commit
3dcd0020c9
1 changed files with 5 additions and 1 deletions
|
|
@ -90,7 +90,11 @@ const NumberInput = forwardRef<HTMLInputElement, Props>(({ defaultValue, showBut
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
<div className={classnames(styles['number-display'], showButtons ? styles['buttons-container'] : '')}>
|
<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
|
<input
|
||||||
ref={ref}
|
ref={ref}
|
||||||
type={'number'}
|
type={'number'}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue