From cfecae6687098e024682973a5b12bfdcf82b1024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Casper=20Hu=CC=88bertz?= Date: Mon, 15 Jun 2020 16:43:12 +0200 Subject: [PATCH] Updated links --- .../plugins/infra/public/pages/logs/page_content.tsx | 12 ++++++++---- x-pack/plugins/infra/public/pages/metrics/index.tsx | 6 +++++- x-pack/plugins/uptime/public/pages/page_header.tsx | 5 ++++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/infra/public/pages/logs/page_content.tsx b/x-pack/plugins/infra/public/pages/logs/page_content.tsx index 57d5de678d0ce..9be19473106c8 100644 --- a/x-pack/plugins/infra/public/pages/logs/page_content.tsx +++ b/x-pack/plugins/infra/public/pages/logs/page_content.tsx @@ -32,9 +32,7 @@ export const LogsPageContent: React.FunctionComponent = () => { const { initialize } = useLogSourceContext(); - const ADD_DATA_LABEL = i18n.translate('xpack.logs.addDataButtonLabel', { - defaultMessage: 'Add data', - }); + const kibana = useKibana(); useMount(() => { initialize(); @@ -94,7 +92,9 @@ export const LogsPageContent: React.FunctionComponent = () => { { const uiCapabilities = useKibana().services.application?.capabilities; + const kibana = useKibana(); + return ( @@ -108,7 +110,9 @@ export const InfrastructurePage = ({ match }: RouteComponentProps) => { ) : null; + const kibana = useKibana(); + const extraLinkComponents = !extraLinks ? null : ( @@ -65,7 +68,7 @@ export const PageHeader = React.memo(