) =>
'MMM D, YYYY @ HH:mm:ss.SSS' } }}>
({ eui: euiLightVars, darkMode: false })}>
+
+
+
+
diff --git a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/trusted_apps_grid/index.tsx b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/trusted_apps_grid/index.tsx
index 4664727dd848c5..d6827ba24c238e 100644
--- a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/trusted_apps_grid/index.tsx
+++ b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/trusted_apps_grid/index.tsx
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import React, { memo, useCallback, useEffect } from 'react';
+import React, { FC, memo, useCallback, useEffect } from 'react';
import {
EuiTablePagination,
EuiFlexGroup,
@@ -12,6 +12,7 @@ import {
EuiProgress,
EuiIcon,
EuiText,
+ EuiSpacer,
} from '@elastic/eui';
import { Pagination } from '../../../state';
@@ -64,6 +65,14 @@ const PaginationBar = ({ pagination, onChange }: PaginationBarProps) => {
);
};
+const GridMessage: FC = ({ children }) => (
+
+
+ {children}
+
+
+);
+
export const TrustedAppsGrid = memo(() => {
const pagination = useTrustedAppsSelector(getListPagination);
const listItems = useTrustedAppsSelector(getListItems);
@@ -80,7 +89,7 @@ export const TrustedAppsGrid = memo(() => {
}));
return (
-
+
{isLoading && (
@@ -88,27 +97,33 @@ export const TrustedAppsGrid = memo(() => {
)}
{error && (
-
+
{error}
-
+
+ )}
+ {!error && listItems.length === 0 && (
+
+ {NO_RESULTS_MESSAGE}
+
)}
- {!error && (
-
- {listItems.map((item) => (
-
-
-
- ))}
- {listItems.length === 0 && (
-
- {NO_RESULTS_MESSAGE}
-
- )}
-
+ {!error && listItems.length > 0 && (
+ <>
+
+
+
+ {listItems.map((item) => (
+
+
+
+ ))}
+
+ >
)}
{!error && pagination.totalItemCount > 0 && (
+
+
)}