From 84623c73b826d22d9b7b3103796bc754e7433b96 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 21 Mar 2021 12:56:23 +0300 Subject: feat: add Contractor Panel --- src/containers/ContractorPanel.tsx | 31 +++++++++++++++++++++++++++++++ src/index.tsx | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 src/containers/ContractorPanel.tsx (limited to 'src') diff --git a/src/containers/ContractorPanel.tsx b/src/containers/ContractorPanel.tsx new file mode 100644 index 0000000..02e11ba --- /dev/null +++ b/src/containers/ContractorPanel.tsx @@ -0,0 +1,31 @@ +import React from 'react'; +import { useHistory } from 'react-router-dom'; +import Button from '../components/Button'; +import { patch, baseURL } from '../requests'; +import { PanelProps } from './Service/ServiceContext'; + + +const ContractorPanel: React.FC = ({ item, mutate }) => { + const history = useHistory(); + + return ( +
+
+ + + + +
+
+ ); +}; + +export default ContractorPanel; diff --git a/src/index.tsx b/src/index.tsx index 71caf35..ffc7ae4 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -14,12 +14,14 @@ import services from './services'; import WaybillForm from './containers/WaybillForm'; import WaybillPanel from './containers/WaybillPanel'; import ContractorForm from './containers/ContractorForm'; +import ContractorPanel from './containers/ContractorPanel'; import ProductForm from './containers/ProductForm'; import TransferForm from './containers/TransferForm'; import TransfersUpload from './containers/TransfersUpload'; services[0].Form = ProductForm; services[1].Form = ContractorForm; +services[1].Panel = ContractorPanel; services[2].Form = WaybillForm; services[2].Panel = WaybillPanel; services[3].Form = TransferForm; -- cgit v1.2.3