8
8
VirtualizedTable ,
9
9
} from '@openshift-console/dynamic-plugin-sdk' ;
10
10
11
- import EnvironmentEmptyState from '../EnvironmentEmptyState' ;
12
11
import { GitOpsAppGroupData } from '../utils/gitops-types' ;
13
12
14
13
import { ApplicationColumns } from './ApplicationColumns' ;
@@ -18,10 +17,9 @@ import './ApplicationList.scss';
18
17
19
18
interface ApplicationListProps {
20
19
appGroups : GitOpsAppGroupData [ ] ;
21
- emptyStateMsg : string ;
22
20
}
23
21
24
- const ApplicationList : React . FC < ApplicationListProps > = ( { appGroups, emptyStateMsg } ) => {
22
+ const ApplicationList : React . FC < ApplicationListProps > = ( { appGroups } ) => {
25
23
const { t } = useTranslation ( 'plugin__gitops-plugin' ) ;
26
24
27
25
const filters : RowFilter [ ] = [
@@ -45,27 +43,21 @@ const ApplicationList: React.FC<ApplicationListProps> = ({ appGroups, emptyState
45
43
46
44
return (
47
45
< div className = "gitops-plugin__application-list" >
48
- { ! emptyStateMsg && appGroups ? (
49
- < >
50
- < ListPageFilter
51
- data = { staticData }
52
- loaded = { ! emptyStateMsg }
53
- onFilterChange = { onFilterChange }
54
- nameFilterPlaceholder = { t ( 'plugin__gitops-plugin~by name' ) }
55
- hideLabelFilter
56
- />
57
- < VirtualizedTable < GitOpsAppGroupData >
58
- data = { filteredData || [ ] }
59
- unfilteredData = { staticData || [ ] }
60
- loaded = { ! emptyStateMsg }
61
- loadError = { null }
62
- columns = { ApplicationColumns ( hasSyncStatus ) }
63
- Row = { ApplicationTableRow }
64
- />
65
- </ >
66
- ) : (
67
- < EnvironmentEmptyState emptyStateMsg = { emptyStateMsg } />
68
- ) }
46
+ < ListPageFilter
47
+ data = { staticData }
48
+ loaded
49
+ onFilterChange = { onFilterChange }
50
+ nameFilterPlaceholder = { t ( 'plugin__gitops-plugin~by name' ) }
51
+ hideLabelFilter
52
+ />
53
+ < VirtualizedTable < GitOpsAppGroupData >
54
+ data = { filteredData || [ ] }
55
+ unfilteredData = { staticData || [ ] }
56
+ loaded
57
+ loadError = { false }
58
+ columns = { ApplicationColumns ( hasSyncStatus ) }
59
+ Row = { ApplicationTableRow }
60
+ />
69
61
</ div >
70
62
) ;
71
63
} ;
0 commit comments