From ef742ea9b2f246f74eae74169675a331679ad41c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 26 Mar 2021 01:56:04 +0300 Subject: feat: add strong typing where possible --- src/services/contractors/ContractorPanel.tsx | 3 ++- src/services/contractors/index.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/services/contractors') diff --git a/src/services/contractors/ContractorPanel.tsx b/src/services/contractors/ContractorPanel.tsx index f7ed8ad..6e703b5 100644 --- a/src/services/contractors/ContractorPanel.tsx +++ b/src/services/contractors/ContractorPanel.tsx @@ -1,9 +1,10 @@ import React from 'react'; import Button from '../../components/Button'; import { PanelProps } from '../../lib/ServiceContext'; +import { Contractor } from '../types'; -const ContractorPanel: React.FC = ({ item }) => { +const ContractorPanel: React.FC> = ({ item }) => { return (
diff --git a/src/services/contractors/index.ts b/src/services/contractors/index.ts index 2341f3a..9730eff 100644 --- a/src/services/contractors/index.ts +++ b/src/services/contractors/index.ts @@ -1,8 +1,9 @@ import Form from './ContractorForm'; import Panel from './ContractorPanel'; import { ServiceParams } from '../../lib/ServiceContext'; +import { Contractor } from '../types'; -const service: ServiceParams = { +const service: ServiceParams = { route: 'contractors', name: 'Контрагенты', nameSingular: 'Контрагент', -- cgit v1.2.3