Skip to content

Commit 82b6ac0

Browse files
committed
removed isEmptyStateInTable property
1 parent 98af5f8 commit 82b6ac0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/lib/cockpit-components-table.tsx

-5
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const _ = cockpit.gettext;
5757
* - emptyCaption: header caption to show if list is empty
5858
* - emptyCaptionDetail: extra details to show after emptyCaption if list is empty
5959
* - emptyComponent: Whole empty state component to show if the list is empty
60-
* - isEmptyStateInTable: if empty state is result of a filter function this should be set, otherwise false
6160
* - loading: Set to string when the content is still loading. This string is shown.
6261
* - variant: For compact tables pass 'compact'
6362
* - gridBreakPoint: Specifies the grid breakpoints ('', 'grid' | 'grid-md' | 'grid-lg' | 'grid-xl' | 'grid-2xl')
@@ -107,7 +106,6 @@ export interface ListingTableProps extends Omit<TableProps, 'rows' | 'onSelect'>
107106
emptyCaption?: React.ReactNode,
108107
emptyCaptionDetail?: React.ReactNode,
109108
emptyComponent?: React.ReactNode,
110-
isEmptyStateInTable?: boolean,
111109
loading?: string,
112110
onRowClick?: (event: React.KeyboardEvent | React.MouseEvent | undefined, row: ListingTableRowProps) => void,
113111
onSelect?: OnSelect;
@@ -127,7 +125,6 @@ export const ListingTable = ({
127125
emptyCaption = '',
128126
emptyCaptionDetail,
129127
emptyComponent,
130-
isEmptyStateInTable = false,
131128
loading = '',
132129
onRowClick,
133130
onSelect,
@@ -214,8 +211,6 @@ export const ListingTable = ({
214211
</EmptyStateFooter>}
215212
</EmptyState>
216213
);
217-
if (!isEmptyStateInTable)
218-
return emptyState;
219214

220215
const emptyStateCell = (
221216
[{

0 commit comments

Comments
 (0)