[SIEM] Cleanup React imports (#53981)
This commit is contained in:
parent
49d6a45788
commit
0308c9d8ca
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiBadge } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import * as i18n from './translations';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TestProviders } from '../../mock';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiIcon } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
/** Renders the body (non-pointy part) of an arrow */
|
||||
|
|
|
@ -9,7 +9,7 @@ import euiDarkVars from '@elastic/eui/dist/eui_theme_dark.json';
|
|||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import { noop } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { ThemeProvider } from 'styled-components';
|
||||
import { AutocompleteSuggestion } from '../../../../../../../src/plugins/data/public';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TestProviders } from '../../mock';
|
||||
import { PreferenceFormattedBytes } from '../formatted_bytes';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { DefaultDraggable } from '../draggables';
|
||||
import { PreferenceFormattedBytes } from '../formatted_bytes';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TestProviders } from '../../mock';
|
||||
import { useMountAppended } from '../../utils/use_mount_appended';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiText } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DraggableBadge } from '../draggables';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { ShallowWrapper, shallow } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { AreaChartBaseComponent, AreaChartComponent } from './areachart';
|
||||
import { ChartSeriesData } from './common';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { shallow, ShallowWrapper } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { BarChartBaseComponent, BarChartComponent } from './barchart';
|
||||
import { ChartSeriesData } from './common';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { NetworkDirectionEcs } from '../../graphql/types';
|
||||
import { DraggableBadge } from '../draggables';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { MockedProvider } from 'react-apollo/test-utils';
|
||||
|
||||
import { mockBrowserFields, mocksSource } from '../../containers/source/mock';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { MockedProvider } from 'react-apollo/test-utils';
|
||||
|
||||
import { mockBrowserFields, mocksSource } from '../../containers/source/mock';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { MockedProvider } from 'react-apollo/test-utils';
|
||||
|
||||
import { mockBrowserFields, mocksSource } from '../../containers/source/mock';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { rgba } from 'polished';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { Droppable } from 'react-beautiful-dnd';
|
||||
import styled from 'styled-components';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { rgba } from 'polished';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const Field = styled.div`
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TestProviders } from '../../mock';
|
||||
import { getEmptyString } from '../empty_value';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiBadge, EuiBadgeProps, EuiToolTip, IconType } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { Omit } from '../../../common/utility_types';
|
||||
import { DragEffects, DraggableWrapper } from '../drag_and_drop/draggable_wrapper';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TestProviders } from '../../mock';
|
||||
import { ONE_MILLISECOND_AS_NANOSECONDS } from '../formatted_duration/helpers';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { DefaultDraggable } from '../draggables';
|
||||
import { FormattedDuration } from '../formatted_duration';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
import { TestProviders } from '../../mock';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { useIndexPatterns } from '../../hooks/use_index_patterns';
|
||||
import { EmbeddedMapComponent } from './embedded_map';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { IndexPatternsMissingPromptComponent } from './index_patterns_missing_prompt';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { EuiButton, EuiCode, EuiEmptyPrompt } from '@elastic/eui';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import chrome from 'ui/chrome';
|
||||
|
||||
import { useKibana } from '../../lib/kibana';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { LineToolTipContentComponent } from './line_tool_tip_content';
|
||||
import { FeatureProperty } from '../types';
|
||||
import { SUM_OF_DESTINATION_BYTES, SUM_OF_SOURCE_BYTES } from '../map_config';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { MapToolTipComponent } from './map_tool_tip';
|
||||
import { MapFeature } from '../types';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { FeatureProperty } from '../types';
|
||||
import { getRenderedFieldValue, PointToolTipContentComponent } from './point_tool_tip_content';
|
||||
import { TestProviders } from '../../../mock';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { ToolTipFooterComponent } from './tooltip_footer';
|
||||
|
||||
describe('ToolTipFilter', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { Provider } from 'react-redux';
|
||||
|
||||
import { apolloClientObservable, mockGlobalState } from '../../mock';
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
EuiText,
|
||||
EuiToolTip,
|
||||
} from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { Draggable } from 'react-beautiful-dnd';
|
||||
import styled from 'styled-components';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockDetailItemData, mockDetailItemDataId } from '../../mock/mock_detail_item';
|
||||
import { TestProviders } from '../../mock/test_providers';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockDetailItemData, mockDetailItemDataId } from '../../mock/mock_detail_item';
|
||||
import { TestProviders } from '../../mock/test_providers';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockDetailItemData } from '../../mock';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { EuiCodeEditor } from '@elastic/eui';
|
||||
import { set } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DetailItem } from '../../graphql/types';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TestProviders } from '../../mock';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiIcon } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const LinkIcon = styled(EuiIcon)`
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { FlowTarget, GetIpOverviewQuery, HostEcsFields } from '../../graphql/types';
|
||||
import { TestProviders } from '../../mock';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { ThemeProvider } from 'styled-components';
|
||||
import euiDarkVars from '@elastic/eui/dist/eui_theme_dark.json';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiInMemoryTable, EuiTitle } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { BrowserFields } from '../../containers/source';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiInMemoryTable } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { BrowserFields } from '../../containers/source';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { BrowserFields } from '../../containers/source';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
import { TestProviders } from '../../mock';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { omit } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
import { TestProviders } from '../../mock';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import { EuiCheckbox, EuiIcon, EuiToolTip, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
||||
import { uniqBy } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { Draggable } from 'react-beautiful-dnd';
|
||||
import styled from 'styled-components';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
import { TestProviders } from '../../mock';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
import { TestProviders } from '../../mock';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { BrowserFields } from '../../containers/source';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
import { TestProviders } from '../../mock';
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
EuiText,
|
||||
EuiTitle,
|
||||
} from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { BrowserFields } from '../../containers/source';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockBrowserFields } from '../../containers/source/mock';
|
||||
import { TestProviders } from '../../mock';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { FlowDirection } from '../../graphql/types';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import { clone } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { ActionCreator } from 'typescript-fsa';
|
||||
|
||||
import { FlowDirection, FlowTarget } from '../../graphql/types';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { EuiNotificationBadge, EuiIcon, EuiButton } from '@elastic/eui';
|
||||
import { rgba } from 'polished';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DroppableWrapper } from '../../drag_and_drop/droppable_wrapper';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import { set } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { ActionCreator } from 'typescript-fsa';
|
||||
|
||||
import { apolloClientObservable, mockGlobalState, TestProviders } from '../../mock';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { EuiBadge } from '@elastic/eui';
|
||||
import { defaultTo, getOr } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import styled from 'styled-components';
|
||||
import { ActionCreator } from 'typescript-fsa';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TestProviders } from '../../../mock';
|
||||
import { flyoutHeaderHeight } from '..';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { mockFrameworks, getMockKibanaUiSetting } from '../../mock';
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import numeral from '@elastic/numeral';
|
||||
|
||||
import { DEFAULT_BYTES_FORMAT } from '../../../common/constants';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import moment from 'moment-timezone';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import moment from 'moment-timezone';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { FormattedRelative } from '@kbn/i18n/react';
|
||||
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { getFormattedDurationString } from './helpers';
|
||||
import { FormattedDurationTooltip } from './tooltip';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiToolTip } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { isArray, isEmpty, isString, uniq } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { DragEffects, DraggableWrapper } from '../drag_and_drop/draggable_wrapper';
|
||||
import { escapeDataProviderId } from '../drag_and_drop/helpers';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import euiDarkVars from '@elastic/eui/dist/eui_theme_dark.json';
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { ThemeProvider } from 'styled-components';
|
||||
|
||||
import {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TestProviders } from '../../mock/test_providers';
|
||||
import { useMountAppended } from '../../utils/use_mount_appended';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { FormattedFieldValue } from '../timeline/body/renderers/formatted_field';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TestProviders } from '../../mock';
|
||||
import { useMountAppended } from '../../utils/use_mount_appended';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DraggableBadge } from '../draggables';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { getEmptyValue } from '../empty_value';
|
||||
import { LastEventIndexKey } from '../../graphql/types';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { mountWithIntl } from 'test_utils/enzyme_helpers';
|
||||
|
||||
import { encodeIpv6 } from '../../lib/helpers';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiLink } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { encodeIpv6 } from '../../lib/helpers';
|
||||
import { getHostDetailsUrl, getIPDetailsUrl } from '../link_to';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, EuiPanel, EuiText } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const SpinnerFlexItem = styled(EuiFlexItem)`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
import { mount } from 'enzyme';
|
||||
import moment from 'moment-timezone';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { LocalizedDateTooltip } from '.';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { EuiFlexGroup, EuiFlexItem, EuiToolTip } from '@elastic/eui';
|
||||
import { FormattedRelative } from '@kbn/i18n/react';
|
||||
import moment from 'moment';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
export const LocalizedDateTooltip = React.memo<{
|
||||
children: React.ReactNode;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { Markdown } from '.';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
/* eslint-disable react/display-name */
|
||||
|
||||
import { EuiLink, EuiTableRow, EuiTableRowCell, EuiText, EuiToolTip } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
import styled from 'styled-components';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { MarkdownHintComponent } from './markdown_hint';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiText } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import * as i18n from './translations';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
/* eslint-disable react/display-name */
|
||||
|
||||
import { shallow } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { MatrixHistogram } from '.';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { InfluencerInput, Anomalies, CriteriaFields } from '../types';
|
||||
import { useAnomaliesTableData } from './use_anomalies_table_data';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import { cloneDeep } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { AnomalyScoreComponent } from './anomaly_score';
|
||||
import { mockAnomalies } from '../mock';
|
||||
import { TestProviders } from '../../../mock/test_providers';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import { cloneDeep } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { AnomalyScoresComponent, createJobKey } from './anomaly_scores';
|
||||
import { mockAnomalies } from '../mock';
|
||||
import { TestProviders } from '../../../mock/test_providers';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow, mount } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { mockAnomalies } from '../mock';
|
||||
import { createDescriptionList } from './create_description_list';
|
||||
import { EuiDescriptionList } from '@elastic/eui';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { GroupsFilterPopoverComponent } from './groups_filter_popover';
|
||||
import { mockSiemJobs } from '../../__mocks__/api';
|
||||
import { SiemJob } from '../../types';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount, shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { JobsTableFiltersComponent } from './jobs_table_filters';
|
||||
import { SiemJob } from '../../types';
|
||||
import { cloneDeep } from 'lodash/fp';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow, mount } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { isChecked, isFailure, isJobLoading, JobSwitchComponent } from './job_switch';
|
||||
import { cloneDeep } from 'lodash/fp';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow, mount } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { JobsTableComponent } from './jobs_table';
|
||||
import { mockSiemJobs } from '../__mocks__/api';
|
||||
import { cloneDeep } from 'lodash/fp';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { ShowingCountComponent } from './showing_count';
|
||||
|
||||
describe('ShowingCount', () => {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { mountWithIntl } from 'test_utils/enzyme_helpers';
|
||||
|
||||
import { MlPopover } from './ml_popover';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { PopoverDescriptionComponent } from './popover_description';
|
||||
|
||||
describe('JobsTableFilters', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import toJson from 'enzyme-to-json';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { UpgradeContentsComponent } from './upgrade_contents';
|
||||
|
||||
describe('JobsTableFilters', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { CONSTANTS } from '../url_state/constants';
|
||||
import { SiemNavigationComponent } from './';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { mount } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { navTabs } from '../../../pages/home/home_navigations';
|
||||
import { SiemPageName } from '../../../pages/home/types';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
||||
import { uniq } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
CertificateFingerprint,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import toJson from 'enzyme-to-json';
|
||||
import { get } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { asArrayIfExists } from '../../lib/helpers';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { Fingerprints } from './fingerprints';
|
||||
import { NetflowColumns } from './netflow_columns';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiText } from '@elastic/eui';
|
||||
import { uniq } from 'lodash/fp';
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DefaultDraggable } from '../../draggables';
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue