From 5992702799eaf7a71cde83112c1ce478c893377b Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 18 Mar 2021 13:26:46 +0300 Subject: feat: adapt Forms for mobile --- src/containers/ContractorForm.tsx | 6 ++---- src/containers/ProductForm.tsx | 6 ++---- src/containers/Service/ServiceItem.tsx | 14 ++++++-------- src/containers/WaybillForm.tsx | 2 +- src/containers/WaybillPanel.tsx | 29 +++++++++++++---------------- 5 files changed, 24 insertions(+), 33 deletions(-) diff --git a/src/containers/ContractorForm.tsx b/src/containers/ContractorForm.tsx index c78ed9b..56d38be 100644 --- a/src/containers/ContractorForm.tsx +++ b/src/containers/ContractorForm.tsx @@ -5,10 +5,8 @@ import Input from '../components/Input'; const ContractorForm: React.FC = () => { return (
-
- - -
+ +
); }; diff --git a/src/containers/ProductForm.tsx b/src/containers/ProductForm.tsx index d99d3c6..060fbbb 100644 --- a/src/containers/ProductForm.tsx +++ b/src/containers/ProductForm.tsx @@ -6,10 +6,8 @@ import Input from '../components/Input'; const ProductForm: React.FC = () => { return (
-
- - -
+ +
); }; diff --git a/src/containers/Service/ServiceItem.tsx b/src/containers/Service/ServiceItem.tsx index 585f609..c1f5446 100644 --- a/src/containers/Service/ServiceItem.tsx +++ b/src/containers/Service/ServiceItem.tsx @@ -40,16 +40,14 @@ const ServiceItem: React.FC = () => { {(!id || item) && ( -
- -
+ )} {item && service.Panel && }
diff --git a/src/containers/WaybillForm.tsx b/src/containers/WaybillForm.tsx index 4b2e3fa..bd326d2 100644 --- a/src/containers/WaybillForm.tsx +++ b/src/containers/WaybillForm.tsx @@ -34,7 +34,7 @@ const WaybillForm: React.FC = ({ setFieldValue, values }) => { ]} /> {_.times(recordsNumber).map(index => ( - +