(e: ChangeEvent<HTMLInputElement>)
| 23 | const theme = useTheme(); |
| 24 | |
| 25 | const onChange = (e: ChangeEvent<HTMLInputElement>) => { |
| 26 | const { value } = e.target; |
| 27 | if (/^\d*$/.test(value)) { |
| 28 | const num = Number(value); |
| 29 | changeAmount(num < (min ?? 0) && limitMin ? min : num > (max ?? Infinity) && limitMax ? max : num); |
| 30 | } |
| 31 | }; |
| 32 | |
| 33 | return ( |
| 34 | <Box |
no outgoing calls
no test coverage detected