summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-21 13:18:39 +0300
committereug-vs <eug-vs@keemail.me>2021-03-21 13:18:39 +0300
commit77ac1549e2ab5ac68a1a7464ada9be7e2a2aad92 (patch)
treec6039cdfc2888e23bbac9c3922453da90e6567ce
parenta7e97f33ae31dd2be1d7c04ecb8f2439ffebf921 (diff)
downloadcommercel-ui-77ac1549e2ab5ac68a1a7464ada9be7e2a2aad92.tar.gz
feat: pass search params across screens
-rw-r--r--src/containers/ContractorPanel.tsx3
-rw-r--r--src/containers/Service/ServiceList.tsx2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/containers/ContractorPanel.tsx b/src/containers/ContractorPanel.tsx
index b68adec..6a209c3 100644
--- a/src/containers/ContractorPanel.tsx
+++ b/src/containers/ContractorPanel.tsx
@@ -10,6 +10,9 @@ const ContractorPanel: React.FC<PanelProps> = ({ item, mutate }) => {
return (
<div className="lg:m-4 p-4 flex flex-col lg:pl-16 lg:border-l">
+ <span className="text-lg mb-10">
+ Долг контрагента: <span className="font-bold">{item.debt}</span>
+ </span>
<div className="grid lg:grid-cols-2">
<Button route={`/waybills?contractorId=${item._id}`} variant="outlined">
Показать накладные
diff --git a/src/containers/Service/ServiceList.tsx b/src/containers/Service/ServiceList.tsx
index a0536b5..f716b24 100644
--- a/src/containers/Service/ServiceList.tsx
+++ b/src/containers/Service/ServiceList.tsx
@@ -13,7 +13,7 @@ const ServiceList: React.FC = () => {
const actions = service.actions || [{
name: 'Добавить',
- route: `/${service.route}/add`,
+ route: `/${service.route}/add${location.search}`,
}];
const handleRowClick = (index: number) => {