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:
@@ -11,8 +11,8 @@ const Details: React.FC<{}> = () => {
|
||||
const decrease = () => setValue(value - 1);
|
||||
const increase = () => setValue(value + 1);
|
||||
const change = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const value = parseInt(e.target.value, 10);
|
||||
const newValue = isNaN(value) ? 0 : value;
|
||||
const v = parseInt(e.target.value, 10);
|
||||
const newValue = isNaN(v) ? 0 : v;
|
||||
setValue(newValue);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user