Skip to content

Commit 967c765

Browse files
fix types
1 parent c183f3c commit 967c765

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

x-pack/legacy/plugins/siem/public/components/event_details/event_fields_browser.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export const EventFieldsBrowser = React.memo<Props>(
5555
return (
5656
<div className="euiTable--compressed">
5757
<EuiInMemoryTable
58+
// @ts-ignore items going in match Partial<BrowserField>, column `render` callbacks expect complete BrowserField
5859
items={items}
5960
columns={columns}
6061
pagination={false}

x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import euiDarkVars from '@elastic/eui/dist/eui_theme_dark.json';
87
import { shallow } from 'enzyme';
98
import toJson from 'enzyme-to-json';
109
import { get } from 'lodash/fp';
@@ -20,7 +19,6 @@ import { HOST_NAME_FIELD_NAME } from './constants';
2019
jest.mock('../../../../lib/kibana');
2120

2221
describe('Events', () => {
23-
const theme = () => ({ eui: euiDarkVars, darkMode: true });
2422
const mount = useMountAppended();
2523

2624
test('renders correctly against snapshot', () => {

x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { EuiFlexGroup, EuiFlexItem, EuiToolTip } from '@elastic/eui';
88
import { isNumber, isString } from 'lodash/fp';
9-
import React, { useMemo } from 'react';
9+
import React from 'react';
1010

1111
import { DefaultDraggable } from '../../../draggables';
1212
import { Bytes, BYTES_FORMAT } from '../../../bytes';

0 commit comments

Comments
 (0)