mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-06 14:16:50 +02:00
Fix tslint issues
This commit is contained in:
@@ -10,9 +10,9 @@ const Details: React.FC<{}> = () => {
|
|||||||
const [value, setValue] = useState(0);
|
const [value, setValue] = useState(0);
|
||||||
const decrease = () => setValue(value - 1);
|
const decrease = () => setValue(value - 1);
|
||||||
const increase = () => setValue(value + 1);
|
const increase = () => setValue(value + 1);
|
||||||
const change = (e: React.ChangeEvent<HTMLInputElement>) => {
|
const change = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
const value = parseInt(e.target.value, 10);
|
const v = parseInt(e.target.value, 10);
|
||||||
const newValue = isNaN(value) ? 0 : value;
|
const newValue = isNaN(v) ? 0 : v;
|
||||||
setValue(newValue);
|
setValue(newValue);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user