From 865b41114060765308d560181f4996c0aa7a3e74 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 26 Mar 2021 01:06:44 +0300 Subject: refactor: move Service to lib/ --- src/services/account/index.ts | 2 +- src/services/contractors/ContractorPanel.tsx | 2 +- src/services/contractors/index.ts | 2 +- src/services/products/index.ts | 2 +- src/services/transfers/TransfersUpload.tsx | 2 +- src/services/transfers/index.ts | 2 +- src/services/waybills/WaybillPanel.tsx | 2 +- src/services/waybills/index.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/services') diff --git a/src/services/account/index.ts b/src/services/account/index.ts index 7cc28b4..cbe56f5 100644 --- a/src/services/account/index.ts +++ b/src/services/account/index.ts @@ -1,4 +1,4 @@ -import { ServiceParams } from '../../containers/Service/ServiceContext'; +import { ServiceParams } from '../../lib/ServiceContext'; const service: ServiceParams = { route: 'account', diff --git a/src/services/contractors/ContractorPanel.tsx b/src/services/contractors/ContractorPanel.tsx index a3650ef..f7ed8ad 100644 --- a/src/services/contractors/ContractorPanel.tsx +++ b/src/services/contractors/ContractorPanel.tsx @@ -1,6 +1,6 @@ import React from 'react'; import Button from '../../components/Button'; -import { PanelProps } from '../../containers/Service/ServiceContext'; +import { PanelProps } from '../../lib/ServiceContext'; const ContractorPanel: React.FC = ({ item }) => { diff --git a/src/services/contractors/index.ts b/src/services/contractors/index.ts index c9e71a1..2341f3a 100644 --- a/src/services/contractors/index.ts +++ b/src/services/contractors/index.ts @@ -1,6 +1,6 @@ import Form from './ContractorForm'; import Panel from './ContractorPanel'; -import { ServiceParams } from '../../containers/Service/ServiceContext'; +import { ServiceParams } from '../../lib/ServiceContext'; const service: ServiceParams = { route: 'contractors', diff --git a/src/services/products/index.ts b/src/services/products/index.ts index 8d42c56..c869541 100644 --- a/src/services/products/index.ts +++ b/src/services/products/index.ts @@ -1,5 +1,5 @@ import Form from './ProductForm'; -import { ServiceParams } from '../../containers/Service/ServiceContext'; +import { ServiceParams } from '../../lib/ServiceContext'; const service: ServiceParams = { route: 'products', diff --git a/src/services/transfers/TransfersUpload.tsx b/src/services/transfers/TransfersUpload.tsx index aefc72c..c14a5c1 100644 --- a/src/services/transfers/TransfersUpload.tsx +++ b/src/services/transfers/TransfersUpload.tsx @@ -3,7 +3,7 @@ import { useHistory } from 'react-router-dom'; import { Form, Formik } from 'formik'; import Input from '../../components/Input'; import Page from '../../containers/Page'; -import { Action } from '../../containers/Service/ServiceContext'; +import { Action } from '../../lib/ServiceContext'; import { post } from '../../requests'; const TransfersUpload: React.FC = () => { diff --git a/src/services/transfers/index.ts b/src/services/transfers/index.ts index 51be7e3..37f7b11 100644 --- a/src/services/transfers/index.ts +++ b/src/services/transfers/index.ts @@ -1,7 +1,7 @@ import Form from './TransferForm'; import UploadPage from './TransfersUpload'; import { transformOperation } from '../transforms'; -import { ServiceParams } from '../../containers/Service/ServiceContext'; +import { ServiceParams } from '../../lib/ServiceContext'; const service: ServiceParams = { diff --git a/src/services/waybills/WaybillPanel.tsx b/src/services/waybills/WaybillPanel.tsx index 101a871..1d1701d 100644 --- a/src/services/waybills/WaybillPanel.tsx +++ b/src/services/waybills/WaybillPanel.tsx @@ -2,7 +2,7 @@ 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'; +import { PanelProps } from '../../lib/ServiceContext'; const WaybillPanel: React.FC = ({ item, mutate }) => { diff --git a/src/services/waybills/index.ts b/src/services/waybills/index.ts index 4e50f54..8cd6c0c 100644 --- a/src/services/waybills/index.ts +++ b/src/services/waybills/index.ts @@ -1,7 +1,7 @@ import Form from './WaybillForm'; import Panel from './WaybillPanel'; import { transformOperation, transformStatus } from '../transforms'; -import { ServiceParams } from '../../containers/Service/ServiceContext'; +import { ServiceParams } from '../../lib/ServiceContext'; const service: ServiceParams = { route: 'waybills', -- cgit v1.2.3