summaryrefslogtreecommitdiff
path: root/src/containers
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers')
-rw-r--r--src/containers/WaybillForm.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/containers/WaybillForm.tsx b/src/containers/WaybillForm.tsx
index 1297a0f..6976652 100644
--- a/src/containers/WaybillForm.tsx
+++ b/src/containers/WaybillForm.tsx
@@ -33,9 +33,8 @@ const WaybillForm: React.FC<FormikProps> = ({ setFieldValue, values }) => {
{ key: 'out', label: 'Расход' },
]}
/>
- <Button onClick={handleAddRecord}>+</Button>
{_.times(recordsNumber).map(index => (
- <Paper>
+ <Paper variant="outlined">
<Select
name={`records.${index}.productId`}
label="Товар"
@@ -51,9 +50,9 @@ const WaybillForm: React.FC<FormikProps> = ({ setFieldValue, values }) => {
type="number"
label="Количество"
/>
- {values.records[index]?.price * values.records[index]?.quantity || 0}
</Paper>
))}
+ <Button onClick={handleAddRecord} variant="outlined" size="sm">Добавить товар</Button>
</Form>
);
};