diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/overview.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/overview.tsx index 0677d46839af0..8d6e421005df7 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/overview.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/overview.tsx @@ -9,7 +9,6 @@ import React from 'react'; import { useValues } from 'kea'; import { - EuiAvatar, EuiEmptyPrompt, EuiFlexGroup, EuiFlexItem, @@ -40,7 +39,6 @@ import { } from '../../../routes'; import { AppLogic } from '../../../app_logic'; -import { User } from '../../../types'; import { ComponentLoader } from '../../../components/shared/component_loader'; import { CredentialItem } from '../../../components/shared/credential_item'; @@ -223,31 +221,6 @@ export const Overview: React.FC = () => { }; const GroupsSummary = () => { - const GroupAvatars = ({ users }: { users: User[] }) => { - const MAX_USERS = 4; - return ( - - {users.slice(0, MAX_USERS).map((user) => ( - - - - ))} - {users.slice(MAX_USERS).length > 0 && ( - - - +{users.slice(MAX_USERS).length} - - - )} - - ); - }; - return !groups.length ? null : ( <> @@ -262,16 +235,9 @@ export const Overview: React.FC = () => { data-test-subj="SourceGroupLink" className="euiPanel--inset" > - - - - {group.name} - - - - - - + + {group.name} + ))}