diff --git a/src/components/outlets/DepositsOutlet.tsx b/src/components/outlets/DepositsOutlet.tsx
index d191222..80e2303 100644
--- a/src/components/outlets/DepositsOutlet.tsx
+++ b/src/components/outlets/DepositsOutlet.tsx
@@ -1,7 +1,7 @@
import { memo, useEffect, useState } from 'react'
import { Outlet } from 'react-router-dom'
-import { DepositsContext } from '@asb/context'
+import { DepositListContext } from '@asb/context'
import LoaderPortal from '@components/LoaderPortal'
import { invokeWebApiWrapperAsync } from '@components/factory'
import { DepositDto, DepositService } from '@api'
@@ -24,11 +24,11 @@ export const DepositsOutlet = memo(() => {
}, [])
return (
-
+
-
+
)
})
diff --git a/src/components/selectors/WellSelector.jsx b/src/components/selectors/WellSelector.jsx
index da7d95c..c0e18bd 100755
--- a/src/components/selectors/WellSelector.jsx
+++ b/src/components/selectors/WellSelector.jsx
@@ -1,7 +1,7 @@
import { Tag, TreeSelect } from 'antd'
import { memo, useEffect, useState } from 'react'
-import { useDeposits } from '@asb/context'
+import { useDepositList } from '@asb/context'
import { invokeWebApiWrapperAsync } from '@components/factory'
import { hasPermission } from '@utils'
@@ -39,7 +39,7 @@ export const WellSelector = memo(({ value, onChange, treeData, treeLabels, ...ot
const [wellsTree, setWellsTree] = useState([])
const [wellLabels, setWellLabels] = useState([])
- const deposits = useDeposits()
+ const deposits = useDepositList()
useEffect(() => {
invokeWebApiWrapperAsync(
diff --git a/src/components/selectors/WellTreeSelector.tsx b/src/components/selectors/WellTreeSelector.tsx
index 231cdcf..ceb1b1f 100755
--- a/src/components/selectors/WellTreeSelector.tsx
+++ b/src/components/selectors/WellTreeSelector.tsx
@@ -2,7 +2,7 @@ import { Drawer, Tree, TreeDataNode, TreeProps } from 'antd'
import { useState, useEffect, useCallback, memo, Key, useMemo } from 'react'
import { useNavigate, useLocation } from 'react-router-dom'
-import { useDeposits } from '@asb/context'
+import { useDepositList } from '@asb/context'
import { WellIcon, WellIconState } from '@components/icons'
import { DepositDto, WellDto } from '@api'
import { isRawDate } from '@utils'
@@ -126,7 +126,7 @@ export const WellTreeSelector = memo(({ expand, current,
const navigate = useNavigate()
const location = useLocation()
- const deposits = useDeposits()
+ const deposits = useDepositList()
const wellsTree = useMemo(() => makeWellsTreeData(deposits), [deposits])
diff --git a/src/context.ts b/src/context.ts
index d719031..3d8cf90 100644
--- a/src/context.ts
+++ b/src/context.ts
@@ -14,7 +14,7 @@ export const LayoutPropsContext = createContext<(props: LayoutPortalProps) => vo
/** Контекст для блока справа от крошек на страницах скважин и админки */
export const TopRightBlockContext = createContext<(block: JSX.Element) => void>(() => {})
/** Контекст со списком месторождений */
-export const DepositsContext = createContext([])
+export const DepositListContext = createContext([])
/**
* Получить текущую скважину
@@ -42,7 +42,7 @@ export const useUser = () => useContext(UserContext)
*
* @returns Список скважин
*/
-export const useDeposits = () => useContext(DepositsContext)
+export const useDepositList = () => useContext(DepositListContext)
/**
* Получить метод задания элементов справа от крошек
diff --git a/src/pages/Deposit.jsx b/src/pages/Deposit.jsx
index f0eb9c3..8d37569 100755
--- a/src/pages/Deposit.jsx
+++ b/src/pages/Deposit.jsx
@@ -3,7 +3,7 @@ import { Link, useLocation } from 'react-router-dom'
import { Map, Overlay } from 'pigeon-maps'
import { Popover, Badge } from 'antd'
-import { useDeposits, useLayoutProps } from '@asb/context'
+import { useDepositList, useLayoutProps } from '@asb/context'
import { PointerIcon } from '@components/icons'
import { FastRunMenu } from '@components/FastRunMenu'
import { limitValue, withPermissions } from '@utils'
@@ -38,7 +38,7 @@ const calcViewParams = (clusters) => {
}
const Deposit = memo(() => {
- const deposits = useDeposits()
+ const deposits = useDepositList()
const setLayoutProps = useLayoutProps()
const location = useLocation()