diff --git a/src/components/CalculatorMode.jsx b/src/components/CalculatorMode.jsx
index 8d7e27f..b53e120 100644
--- a/src/components/CalculatorMode.jsx
+++ b/src/components/CalculatorMode.jsx
@@ -1,22 +1,27 @@
-import { Select } from 'antd';
+import { Segmented } from 'antd';
export default function CalculatorMode({ value, onChange }) {
return (
-
);
diff --git a/src/components/NumberInput.jsx b/src/components/NumberInput.jsx
index 9243924..0d0493d 100644
--- a/src/components/NumberInput.jsx
+++ b/src/components/NumberInput.jsx
@@ -1,4 +1,4 @@
-import { InputNumber } from 'antd';
+import { InputNumber, Button, Flex } from 'antd';
export default function NumberInput({ label, value, onChange, unit, min = 0, step = 1 }) {
const handleChange = (newValue) => {
@@ -6,20 +6,45 @@ export default function NumberInput({ label, value, onChange, unit, min = 0, ste
onChange(numValue);
};
+ const handleDecrement = () => {
+ handleChange(value - step);
+ };
+
+ const handleIncrement = () => {
+ handleChange(value + step);
+ };
+
return (
{label}
-
+
+
+ {unit}}
+ size="large"
+ style={{ flex: 1 }}
+ controls={false}
+ />
+
+
);
}
diff --git a/src/components/TimeInput.jsx b/src/components/TimeInput.jsx
index 2ca09a4..6d72706 100644
--- a/src/components/TimeInput.jsx
+++ b/src/components/TimeInput.jsx
@@ -20,7 +20,7 @@ export default function TimeInput({ label, hours, minutes, seconds, onChange })
onChange={(value) => handleChange('hours', value)}
min={0}
placeholder="0"
- addonAfter="h"
+ suffix={h}
size="large"
style={{ width: '33.33%' }}
controls={false}
@@ -31,7 +31,7 @@ export default function TimeInput({ label, hours, minutes, seconds, onChange })
min={0}
max={59}
placeholder="0"
- addonAfter="m"
+ suffix={m}
size="large"
style={{ width: '33.33%' }}
controls={false}
@@ -42,7 +42,7 @@ export default function TimeInput({ label, hours, minutes, seconds, onChange })
min={0}
max={59}
placeholder="0"
- addonAfter="s"
+ suffix={s}
size="large"
style={{ width: '33.34%' }}
controls={false}