first commit
Some checks failed
Deploy to Private Server / deploy (push) Failing after 2s

This commit is contained in:
2025-12-24 11:49:29 +07:00
commit 97e902ec50
19 changed files with 4897 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { InputNumber } from 'antd';
export default function NumberInput({ label, value, onChange, unit, min = 0, step = 1 }) {
const handleChange = (newValue) => {
const numValue = Math.max(min, newValue || 0);
onChange(numValue);
};
return (
<div className="form-row">
<label className="form-label">{label}</label>
<InputNumber
value={value}
onChange={handleChange}
min={min}
step={step}
placeholder="0"
addonAfter={unit}
size="large"
style={{ width: '100%' }}
controls={false}
/>
</div>
);
}