@@ -25,9 +25,10 @@ import messages from 'locales/messages';
25
25
import React from 'react' ;
26
26
import type { WrappedComponentProps } from 'react-intl' ;
27
27
import { injectIntl } from 'react-intl' ;
28
+ import type { DropdownWrapperItem } from 'routes/components/dropdownWrapper' ;
29
+ import { DropdownWrapper } from 'routes/components/dropdownWrapper' ;
28
30
import { EmptyFilterState } from 'routes/components/state/emptyFilterState' ;
29
31
30
- import { ExportsActions } from './exportActions' ;
31
32
import { styles } from './exportsTable.styles' ;
32
33
33
34
interface ExportsTableOwnProps {
@@ -125,7 +126,7 @@ class ExportsTableBase extends React.Component<ExportsTableProps, ExportsTableSt
125
126
{ title : < div > { item . created } </ div > , id : ExportsTableColumnIds . created } ,
126
127
{ title : < div > { item . expires } </ div > , id : ExportsTableColumnIds . expires } ,
127
128
{ title : this . getStatus ( item . status ) , id : ExportsTableColumnIds . status } ,
128
- { title : < ExportsActions onDelete = { this . handleOnDelete } /> , id : ExportsTableColumnIds . actions } ,
129
+ { title : this . getActions ( ) , id : ExportsTableColumnIds . actions } ,
129
130
] ,
130
131
item,
131
132
} ) ;
@@ -157,6 +158,18 @@ class ExportsTableBase extends React.Component<ExportsTableProps, ExportsTableSt
157
158
} ) ;
158
159
} ;
159
160
161
+ private getActions = ( ) => {
162
+ const { intl } = this . props ;
163
+
164
+ const items : DropdownWrapperItem [ ] = [
165
+ {
166
+ onClick : this . handleOnDelete ,
167
+ toString : ( ) => intl . formatMessage ( messages . delete ) ,
168
+ } ,
169
+ ] ;
170
+ return < DropdownWrapper isKebab items = { items } position = "right" /> ;
171
+ } ;
172
+
160
173
private getEmptyState = ( ) => {
161
174
const { onClose, query, intl } = this . props ;
162
175
0 commit comments