1
- import { Button , Empty , Image , message , Modal , Tag , Tooltip , Typography } from 'antd' ;
1
+ import { Button , Dropdown , Empty , Image , message , Modal , Tag , Tooltip , Typography } from 'antd' ;
2
2
import React from 'react' ;
3
3
import styled from 'styled-components' ;
4
- import { DeleteOutlined , DownOutlined , RightOutlined , StopOutlined } from '@ant-design/icons' ;
4
+ import { DeleteOutlined , DownOutlined , MoreOutlined , RightOutlined , StopOutlined } from '@ant-design/icons' ;
5
5
import { DatasetAssertionDescription } from './DatasetAssertionDescription' ;
6
6
import { StyledTable } from '../../../components/styled/StyledTable' ;
7
7
import { DatasetAssertionDetails } from './DatasetAssertionDetails' ;
8
8
import { Assertion , AssertionRunStatus } from '../../../../../../types.generated' ;
9
9
import { getResultColor , getResultIcon , getResultText } from './assertionUtils' ;
10
10
import { useDeleteAssertionMutation } from '../../../../../../graphql/assertion.generated' ;
11
11
import { capitalizeFirstLetterOnly } from '../../../../../shared/textUtil' ;
12
+ import AssertionMenu from './AssertionMenu' ;
12
13
13
14
const ResultContainer = styled . div `
14
15
display: flex;
@@ -30,6 +31,10 @@ const PlatformContainer = styled.div`
30
31
margin-right: 8px;
31
32
` ;
32
33
34
+ const StyledMoreOutlined = styled ( MoreOutlined ) `
35
+ font-size: 18px;
36
+ ` ;
37
+
33
38
type Props = {
34
39
assertions : Array < Assertion > ;
35
40
onDelete ?: ( urn : string ) => void ;
@@ -141,6 +146,14 @@ export const DatasetAssertionsList = ({ assertions, onDelete }: Props) => {
141
146
< Button onClick = { ( ) => onDeleteAssertion ( record . urn ) } type = "text" shape = "circle" danger >
142
147
< DeleteOutlined />
143
148
</ Button >
149
+ < Dropdown
150
+ overlay = {
151
+ < AssertionMenu urn = { record . urn } />
152
+ }
153
+ trigger = { [ 'click' ] }
154
+ >
155
+ < StyledMoreOutlined />
156
+ </ Dropdown >
144
157
</ ActionButtonContainer >
145
158
) ,
146
159
} ,
0 commit comments