Skip to content

Commit

Permalink
Style: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rylnd committed Dec 17, 2019
1 parent aa8fe1b commit c517c89
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
1 change: 0 additions & 1 deletion x-pack/legacy/plugins/siem/public/mock/test_providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit c517c89

Please sign in to comment.