11import block from 'bem-cn-lite' ;
22
3- import { Button , Popover , PopoverBehavior } from '@gravity-ui/uikit' ;
3+ import { Button , PopoverBehavior } from '@gravity-ui/uikit' ;
44
55import type { NodesPreparedEntity } from '../../store/reducers/nodes/types' ;
66import type { NodeAddress } from '../../types/additionalProps' ;
@@ -10,6 +10,7 @@ import {isUnavailableNode} from '../../utils/nodes';
1010import EntityStatus from '../EntityStatus/EntityStatus' ;
1111import { NodeEndpointsTooltipContent } from '../TooltipsContent' ;
1212import { IconWrapper } from '../Icon' ;
13+ import { CellWithPopover } from '../CellWithPopover/CellWithPopover' ;
1314
1415import './NodeHostWrapper.scss' ;
1516
@@ -34,33 +35,31 @@ export const NodeHostWrapper = ({node, getNodeRef}: NodeHostWrapperProps) => {
3435 : undefined ;
3536
3637 return (
37- < div className = { b ( ) } >
38- < Popover
39- disabled = { ! isNodeAvailable }
40- content = { < NodeEndpointsTooltipContent data = { node } /> }
41- placement = { [ 'top' , 'bottom' ] }
42- behavior = { PopoverBehavior . Immediate }
43- >
44- < div className = { b ( 'host-wrapper' ) } >
45- < EntityStatus
46- name = { node . Host }
47- status = { node . SystemState }
48- path = { nodePath }
49- hasClipboardButton
50- className = { b ( 'host' ) }
51- />
52- { nodeRef && (
53- < Button
54- size = "s"
55- href = { nodeRef }
56- className = { b ( 'external-button' ) }
57- target = "_blank"
58- >
59- < IconWrapper name = "external" />
60- </ Button >
61- ) }
62- </ div >
63- </ Popover >
64- </ div >
38+ < CellWithPopover
39+ disabled = { ! isNodeAvailable }
40+ content = { < NodeEndpointsTooltipContent data = { node } /> }
41+ placement = { [ 'top' , 'bottom' ] }
42+ behavior = { PopoverBehavior . Immediate }
43+ >
44+ < div className = { b ( 'host-wrapper' ) } >
45+ < EntityStatus
46+ name = { node . Host }
47+ status = { node . SystemState }
48+ path = { nodePath }
49+ hasClipboardButton
50+ className = { b ( 'host' ) }
51+ />
52+ { nodeRef && (
53+ < Button
54+ size = "s"
55+ href = { nodeRef }
56+ className = { b ( 'external-button' ) }
57+ target = "_blank"
58+ >
59+ < IconWrapper name = "external" />
60+ </ Button >
61+ ) }
62+ </ div >
63+ </ CellWithPopover >
6564 ) ;
6665} ;
0 commit comments