Skip to content

Commit

Permalink
[SIEM] Cleanup React imports (#53981)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski authored Jan 7, 2020
1 parent 49d6a45 commit 0308c9d
Show file tree
Hide file tree
Showing 295 changed files with 295 additions and 295 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { mount } from 'enzyme';
import * as React from 'react';
import React from 'react';

import { TestProviders } from '../../mock';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { mount } from 'enzyme';
import * as React from 'react';
import React from 'react';

import { mockBrowserFields } from '../../containers/source/mock';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { mount } from 'enzyme';
import * as React from 'react';
import React from 'react';

import { mockBrowserFields } from '../../containers/source/mock';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Loading

0 comments on commit 0308c9d

Please sign in to comment.