diff options
Diffstat (limited to 'src/services/contractors')
-rw-r--r-- | src/services/contractors/ContractorPanel.tsx | 6 | ||||
-rw-r--r-- | src/services/contractors/index.ts | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/services/contractors/ContractorPanel.tsx b/src/services/contractors/ContractorPanel.tsx index ce94c48..a3650ef 100644 --- a/src/services/contractors/ContractorPanel.tsx +++ b/src/services/contractors/ContractorPanel.tsx @@ -1,13 +1,9 @@ import React from 'react'; -import { useHistory } from 'react-router-dom'; import Button from '../../components/Button'; -import { patch, baseURL } from '../../requests'; import { PanelProps } from '../../containers/Service/ServiceContext'; -const ContractorPanel: React.FC<PanelProps> = ({ item, mutate }) => { - const history = useHistory(); - +const ContractorPanel: React.FC<PanelProps> = ({ item }) => { return ( <div className="lg:m-4 p-4 flex flex-col lg:pl-16 lg:border-l"> <span className="text-lg mb-10"> diff --git a/src/services/contractors/index.ts b/src/services/contractors/index.ts index 124e338..c9e71a1 100644 --- a/src/services/contractors/index.ts +++ b/src/services/contractors/index.ts @@ -1,7 +1,8 @@ import Form from './ContractorForm'; import Panel from './ContractorPanel'; +import { ServiceParams } from '../../containers/Service/ServiceContext'; -const service = { +const service: ServiceParams = { route: 'contractors', name: 'Контрагенты', nameSingular: 'Контрагент', |