Skip to content

Commit 0308c9d

Browse files
[SIEM] Cleanup React imports (#53981)
1 parent 49d6a45 commit 0308c9d

File tree

295 files changed

+295
-295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

295 files changed

+295
-295
lines changed

x-pack/legacy/plugins/siem/public/components/and_or_badge/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { EuiBadge } from '@elastic/eui';
8-
import * as React from 'react';
8+
import React from 'react';
99
import styled from 'styled-components';
1010

1111
import * as i18n from './translations';

x-pack/legacy/plugins/siem/public/components/arrows/index.test.tsx

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

77
import { mount } from 'enzyme';
88
import toJson from 'enzyme-to-json';
9-
import * as React from 'react';
9+
import React from 'react';
1010

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

x-pack/legacy/plugins/siem/public/components/arrows/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { EuiIcon } from '@elastic/eui';
8-
import * as React from 'react';
8+
import React from 'react';
99
import styled from 'styled-components';
1010

1111
/** Renders the body (non-pointy part) of an arrow */

x-pack/legacy/plugins/siem/public/components/autocomplete_field/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import euiDarkVars from '@elastic/eui/dist/eui_theme_dark.json';
99
import { mount, shallow } from 'enzyme';
1010
import toJson from 'enzyme-to-json';
1111
import { noop } from 'lodash/fp';
12-
import * as React from 'react';
12+
import React from 'react';
1313
import { ThemeProvider } from 'styled-components';
1414
import { AutocompleteSuggestion } from '../../../../../../../src/plugins/data/public';
1515

x-pack/legacy/plugins/siem/public/components/bytes/index.test.tsx

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

7-
import * as React from 'react';
7+
import React from 'react';
88

99
import { TestProviders } from '../../mock';
1010
import { PreferenceFormattedBytes } from '../formatted_bytes';

x-pack/legacy/plugins/siem/public/components/bytes/index.tsx

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

7-
import * as React from 'react';
7+
import React from 'react';
88

99
import { DefaultDraggable } from '../draggables';
1010
import { PreferenceFormattedBytes } from '../formatted_bytes';

x-pack/legacy/plugins/siem/public/components/certificate_fingerprint/index.test.tsx

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

7-
import * as React from 'react';
7+
import React from 'react';
88

99
import { TestProviders } from '../../mock';
1010
import { useMountAppended } from '../../utils/use_mount_appended';

x-pack/legacy/plugins/siem/public/components/certificate_fingerprint/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { EuiText } from '@elastic/eui';
8-
import * as React from 'react';
8+
import React from 'react';
99
import styled from 'styled-components';
1010

1111
import { DraggableBadge } from '../draggables';

x-pack/legacy/plugins/siem/public/components/charts/areachart.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { ShallowWrapper, shallow } from 'enzyme';
8-
import * as React from 'react';
8+
import React from 'react';
99

1010
import { AreaChartBaseComponent, AreaChartComponent } from './areachart';
1111
import { ChartSeriesData } from './common';

x-pack/legacy/plugins/siem/public/components/charts/barchart.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { shallow, ShallowWrapper } from 'enzyme';
8-
import * as React from 'react';
8+
import React from 'react';
99

1010
import { BarChartBaseComponent, BarChartComponent } from './barchart';
1111
import { ChartSeriesData } from './common';

0 commit comments

Comments
 (0)