From c517c89527a8be870d96695b4e13d0e74c549c67 Mon Sep 17 00:00:00 2001 From: Ryland Herrick <ryalnd@gmail.com> Date: Tue, 17 Dec 2019 14:24:30 -0600 Subject: [PATCH] Style: cleanup --- .../siem/public/mock/test_providers.tsx | 1 - .../detection_engine_empty_page.tsx | 30 ++++++++----------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/x-pack/legacy/plugins/siem/public/mock/test_providers.tsx b/x-pack/legacy/plugins/siem/public/mock/test_providers.tsx index 00ff040503d53..6c0a85e3ef778 100644 --- a/x-pack/legacy/plugins/siem/public/mock/test_providers.tsx +++ b/x-pack/legacy/plugins/siem/public/mock/test_providers.tsx @@ -19,7 +19,6 @@ import { ThemeProvider } from 'styled-components'; import { createStore, State } from '../store'; import { mockGlobalState } from './global_state'; -// import './ui_settings'; import { createKibanaContextProviderMock } from './kibana_react'; jest.mock('ui/new_platform'); diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_empty_page.tsx b/x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_empty_page.tsx index 42967ea9e2155..a217fd6a737e7 100644 --- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_empty_page.tsx +++ b/x-pack/legacy/plugins/siem/public/pages/detection_engine/detection_engine_empty_page.tsx @@ -13,21 +13,17 @@ import * as i18n from './translations'; const basePath = chrome.getBasePath(); -export const DetectionEngineEmptyPage = React.memo(() => { - const docLinks = useKibana().services.docLinks; - - return ( - <EmptyPage - actionPrimaryIcon="gear" - actionPrimaryLabel={i18n.EMPTY_ACTION_PRIMARY} - actionPrimaryUrl={`${basePath}/app/kibana#/home/tutorial_directory/siem`} - actionSecondaryIcon="popout" - actionSecondaryLabel={i18n.EMPTY_ACTION_SECONDARY} - actionSecondaryTarget="_blank" - actionSecondaryUrl={docLinks.links.siem} - data-test-subj="empty-page" - title={i18n.EMPTY_TITLE} - /> - ); -}); +export const DetectionEngineEmptyPage = React.memo(() => ( + <EmptyPage + actionPrimaryIcon="gear" + actionPrimaryLabel={i18n.EMPTY_ACTION_PRIMARY} + actionPrimaryUrl={`${basePath}/app/kibana#/home/tutorial_directory/siem`} + actionSecondaryIcon="popout" + actionSecondaryLabel={i18n.EMPTY_ACTION_SECONDARY} + actionSecondaryTarget="_blank" + actionSecondaryUrl={useKibana().services.docLinks.links.siem} + data-test-subj="empty-page" + title={i18n.EMPTY_TITLE} + /> +)); DetectionEngineEmptyPage.displayName = 'DetectionEngineEmptyPage';