From a7e97f33ae31dd2be1d7c04ecb8f2439ffebf921 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 21 Mar 2021 13:10:32 +0300
Subject: feat: add useQuery hook

---
 src/containers/ContractorPanel.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/containers/ContractorPanel.tsx')

diff --git a/src/containers/ContractorPanel.tsx b/src/containers/ContractorPanel.tsx
index 02e11ba..b68adec 100644
--- a/src/containers/ContractorPanel.tsx
+++ b/src/containers/ContractorPanel.tsx
@@ -14,13 +14,13 @@ const ContractorPanel: React.FC<PanelProps> = ({ item, mutate }) => {
         <Button route={`/waybills?contractorId=${item._id}`} variant="outlined">
           Показать накладные
         </Button>
-        <Button route="/waybills/add">
+        <Button route={`/waybills/add?contractorId=${item._id}`}>
           Новая накладная
         </Button>
         <Button route={`/transfers?contractorId=${item._id}`} variant="outlined">
           Показать переводы
         </Button>
-        <Button route="/transfers/add">
+        <Button route={`/transfers/add?contractorId=${item._id}`}>
           Новый перевод
         </Button>
       </div>
-- 
cgit v1.2.3

