diff --git a/src/pages/Well/WellOperations/Tvd/index.jsx b/src/pages/Well/WellOperations/Tvd/index.jsx index f295d49..e41ba75 100644 --- a/src/pages/Well/WellOperations/Tvd/index.jsx +++ b/src/pages/Well/WellOperations/Tvd/index.jsx @@ -4,7 +4,7 @@ import { Switch, Segmented } from 'antd' import { Link } from 'react-router-dom' import * as d3 from 'd3' -import { useWell } from '@asb/context' +import { useTopRightBlock, useWell } from '@asb/context' import { D3Chart } from '@components/d3' import LoaderPortal from '@components/LoaderPortal' import { invokeWebApiWrapperAsync } from '@components/factory' @@ -170,6 +170,8 @@ const Tvd = memo(({ well: givenWell, title, ...other }) => { const [pointsEnabled, setPointsEnabled] = useState(true) const [selectedTab, setSelectedTab] = useState('Скрыть') + const setTopRightBlock = useTopRightBlock() + const [wellContext] = useWell() const well = useMemo(() => givenWell ?? wellContext, [givenWell, wellContext]) @@ -227,11 +229,22 @@ const Tvd = memo(({ well: givenWell, title, ...other }) => { ) }, [well]) + useEffect(() => { + setTopRightBlock( +
+ + +
+ ) + }, [well, setTopRightBlock]) + return (

{title || 'График Глубина-день'}

+
+
{ title={'Нажмите для переключения видимости засечек на графиках'} /> -
-
- -