diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-21 13:10:32 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-21 13:11:55 +0300 |
commit | a7e97f33ae31dd2be1d7c04ecb8f2439ffebf921 (patch) | |
tree | ac325cc0f1b6eef9243bb0c1c2a247ad60fff5bf /src/containers/ContractorPanel.tsx | |
parent | 84623c73b826d22d9b7b3103796bc754e7433b96 (diff) | |
download | commercel-ui-a7e97f33ae31dd2be1d7c04ecb8f2439ffebf921.tar.gz |
feat: add useQuery hook
Diffstat (limited to 'src/containers/ContractorPanel.tsx')
-rw-r--r-- | src/containers/ContractorPanel.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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> |