This commit is contained in:
parent
68f5aa29ab
commit
febaa818f1
6 changed files with 14 additions and 7 deletions
|
|
@ -7,7 +7,7 @@ interface InputProps {
|
|||
placeholder?: string;
|
||||
label?: string;
|
||||
customClass?: string;
|
||||
mask?: string | typeof Number | RegExp
|
||||
mask?: string | RegExp | any;
|
||||
}
|
||||
|
||||
export default function Input({ value, onChange, placeholder, label, customClass, mask }: InputProps) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ function NumberRangeInput({
|
|||
<IMaskInput
|
||||
mask={Number}
|
||||
name="min"
|
||||
value={range.min}
|
||||
value={`${range.min}`}
|
||||
onChange={handleChange}
|
||||
placeholder={`${minLimit}`}
|
||||
className={styles.input}
|
||||
|
|
@ -67,7 +67,7 @@ function NumberRangeInput({
|
|||
<IMaskInput
|
||||
mask={Number}
|
||||
name="max"
|
||||
value={range.max}
|
||||
value={`${range.max}`}
|
||||
onChange={handleChange}
|
||||
placeholder={`${maxLimit}`}
|
||||
className={styles.input}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue