MCPcopy
hub / github.com/autobase-tech/autobase / onChange

Function onChange

console/ui/src/shared/ui/slider-box/ui/index.tsx:25–31  ·  view source on GitHub ↗
(e: ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

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

Callers 9

handleTabChangeFunction · 0.85
handleInstanceTypeChangeFunction · 0.85
handleRegionChangeFunction · 0.85
handleRegionConfigChangeFunction · 0.85
handleChangeFunction · 0.85
handleInputChangeFunction · 0.85
handleInputChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected