1
- import { useIsSeparateSiblingsMode } from '@app/entity/shared/siblingUtils' ;
2
- import React , { useMemo , useState } from 'react' ;
3
- import { useLocation } from 'react-router' ;
4
- import styled from 'styled-components/macro' ;
5
- import * as QueryString from 'query-string' ;
6
1
import {
7
2
ArrowDownOutlined ,
8
3
ArrowUpOutlined ,
9
4
CaretDownFilled ,
10
5
CaretDownOutlined ,
6
+ LoadingOutlined ,
11
7
ReloadOutlined ,
12
8
SubnodeOutlined ,
13
- LoadingOutlined ,
14
9
} from '@ant-design/icons' ;
15
- import { Button , Select , Typography } from 'antd ' ;
10
+ import { useIsSeparateSiblingsMode } from '@app/entity/shared/siblingUtils ' ;
16
11
import { Tooltip } from '@components' ;
17
12
import { GenericEntityProperties } from '@src/app/entity/shared/types' ;
13
+ import ManageLineageMenuForImpactAnalysis from '@src/app/entityV2/shared/tabs/Lineage/ManageLineageMenuFromImpactAnalysis' ;
14
+ import { Direction } from '@src/app/lineage/types' ;
15
+ import { Button , Select , Typography } from 'antd' ;
16
+ import * as QueryString from 'query-string' ;
17
+ import React , { useMemo , useState } from 'react' ;
18
+ import { useLocation } from 'react-router' ;
19
+ import styled from 'styled-components/macro' ;
18
20
import { EntityType , LineageDirection } from '../../../../../types.generated' ;
19
- import ManageLineageMenu from '../../../../lineage/manage/ManageLineageMenu ' ;
21
+ import { useEntityData } from '../../../../entity/shared/EntityContext ' ;
20
22
import { useGetLineageTimeParams } from '../../../../lineage/utils/useGetLineageTimeParams' ;
21
23
import { useEntityRegistry } from '../../../../useEntityRegistry' ;
22
24
import { downgradeV2FieldPath } from '../../../dataset/profile/schema/utils/utils' ;
23
25
import TabToolbar from '../../components/styled/TabToolbar' ;
24
26
import { ANTD_GRAY } from '../../constants' ;
25
- import { useEntityData } from '../../../../entity/shared/EntityContext' ;
26
27
import ColumnsLineageSelect from './ColumnLineageSelect' ;
27
28
import { ImpactAnalysis } from './ImpactAnalysis' ;
28
29
import { LineageTabContext } from './LineageTabContext' ;
@@ -73,9 +74,10 @@ interface SchemaFieldEntityData extends GenericEntityProperties {
73
74
74
75
interface Props {
75
76
defaultDirection : LineageDirection ;
77
+ setVisualizeViewInEditMode : ( view : boolean , direction : Direction ) => void ;
76
78
}
77
79
78
- export function LineageColumnView ( { defaultDirection } : Props ) {
80
+ export function LineageColumnView ( { defaultDirection, setVisualizeViewInEditMode } : Props ) {
79
81
const { urn, entityType, entityData } = useEntityData ( ) ;
80
82
const location = useLocation ( ) ;
81
83
const entityRegistry = useEntityRegistry ( ) ;
@@ -153,10 +155,8 @@ export function LineageColumnView({ defaultDirection }: Props) {
153
155
/>
154
156
</ LeftButtonsWrapper >
155
157
< RightButtonsWrapper >
156
- < ManageLineageMenu
157
- entityUrn = { urn }
158
- refetchEntity = { ( ) => setShouldRefetch ( true ) }
159
- setUpdatedLineages = { ( ) => { } }
158
+ < ManageLineageMenuForImpactAnalysis
159
+ setVisualizeViewInEditMode = { setVisualizeViewInEditMode }
160
160
menuIcon = {
161
161
< Button type = "text" >
162
162
< ManageLineageIcon />
@@ -166,9 +166,7 @@ export function LineageColumnView({ defaultDirection }: Props) {
166
166
< StyledCaretDown />
167
167
</ Button >
168
168
}
169
- showLoading
170
169
entityType = { entityType }
171
- entityPlatform = { entityData ?. platform ?. name }
172
170
canEditLineage = { canEditLineage }
173
171
disableDropdown = { ! canEditLineage }
174
172
/>
0 commit comments