diff --git a/src/components/factory.tsx b/src/components/factory.tsx index 80ad3aa..4ba138c 100644 --- a/src/components/factory.tsx +++ b/src/components/factory.tsx @@ -30,7 +30,7 @@ export const notify = (body?: ReactNode, notifyType: NotifyType = 'info', well?: const message = (
{instance.message} - +
) diff --git a/src/components/views/WellView.tsx b/src/components/views/WellView.tsx index d942af9..316edb8 100644 --- a/src/components/views/WellView.tsx +++ b/src/components/views/WellView.tsx @@ -1,5 +1,5 @@ import { memo } from 'react' -import { Tooltip } from 'antd' +import { Tooltip, TooltipProps } from 'antd' import { Grid, GridItem } from '@components/Grid' import { WellIcon, WellIconState } from '@components/icons' @@ -13,12 +13,12 @@ const wellState: Record = { 2: { enum: 'inactive', label: 'Завершена' }, } -export type WellViewProps = { +export type WellViewProps = TooltipProps & { well?: WellDto } -export const WellView = memo(({ well }) => well ? ( - (({ well, ...other }) => well ? ( + Название: {well.caption ?? '---'}