diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/source_router.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/source_router.tsx index 8698e21a198a4..f3313a13e58ee 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/source_router.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/source_router.tsx @@ -22,7 +22,6 @@ import { SOURCE_SCHEMAS_PATH, SOURCE_DISPLAY_SETTINGS_PATH, SOURCE_SETTINGS_PATH, - SOURCES_PATH, getContentSourcePath as sourcePath, getSourcesPath, } from '../../routes'; @@ -49,11 +48,6 @@ export const SourceRouter: React.FC = () => { const { contentSource, dataLoading } = useValues(SourceLogic); const { isOrganization } = useValues(AppLogic); - const breadcrumbs = { - topLevelPath: getSourcesPath(SOURCES_PATH, isOrganization), - topLevelName: '← All content sources', - }; - useEffect(() => { initializeSource(sourceId, history); }, []); @@ -102,29 +96,20 @@ export const SourceRouter: React.FC = () => { sidebarLinks = [overviewLink, contentLink, sourceSettingsLink]; } - /** TODO: Replace this in Kibana - const sidebar = ( - - {name} - - } - titleCssClass="content-source-title" - breadcrumbs={breadcrumbs} - headerChildren={ + const pageHeader = ( +
+ + {name} + - } - links={sidebarLinks} - isFederatedSource={isFederatedSource} - /> + +
); - */ const callout = ( <> @@ -144,6 +129,8 @@ export const SourceRouter: React.FC = () => { return ( <> {!supportedByLicense && callout} + {/* TODO: Figure out with design how to make this look better */} + {pageHeader}