Browse Source

ref(js): Remove import * from React when not needed (#34265)

Evan Purkhiser 2 years ago
parent
commit
e4e2e6c78a

+ 0 - 2
static/app/actionCreators/modal.tsx

@@ -1,5 +1,3 @@
-import * as React from 'react';
-
 import ModalActions from 'sentry/actions/modalActions';
 import type {ModalTypes} from 'sentry/components/globalModal';
 import type {DashboardWidgetModalOptions} from 'sentry/components/modals/addDashboardWidgetModal';

+ 0 - 2
static/app/components/acl/demoModeGate.tsx

@@ -1,5 +1,3 @@
-import * as React from 'react';
-
 import ConfigStore from 'sentry/stores/configStore';
 import {Organization} from 'sentry/types';
 import withOrganization from 'sentry/utils/withOrganization';

+ 0 - 1
static/app/components/actions/actionLink.tsx

@@ -1,4 +1,3 @@
-import * as React from 'react';
 import styled from '@emotion/styled';
 import classNames from 'classnames';
 

+ 0 - 2
static/app/components/actions/button.tsx

@@ -1,5 +1,3 @@
-import * as React from 'react';
-
 import Button, {ButtonProps} from 'sentry/components/button';
 
 function ActionButton(props: ButtonProps): React.ReactElement {

+ 0 - 1
static/app/components/actions/ignore.tsx

@@ -1,4 +1,3 @@
-import * as React from 'react';
 import styled from '@emotion/styled';
 
 import {openModal} from 'sentry/actionCreators/modal';

+ 0 - 1
static/app/components/actions/menuItemActionLink.tsx

@@ -1,4 +1,3 @@
-import * as React from 'react';
 import styled from '@emotion/styled';
 
 import ActionLink from 'sentry/components/actions/actionLink';

+ 0 - 1
static/app/components/activity/item/index.tsx

@@ -1,4 +1,3 @@
-import * as React from 'react';
 import styled from '@emotion/styled';
 import moment from 'moment-timezone';
 

+ 0 - 1
static/app/components/alertLink.tsx

@@ -1,4 +1,3 @@
-import * as React from 'react';
 import styled from '@emotion/styled';
 import omit from 'lodash/omit';
 

+ 0 - 1
static/app/components/alerts/toastIndicator.tsx

@@ -1,4 +1,3 @@
-import * as React from 'react';
 import styled from '@emotion/styled';
 import classNames from 'classnames';
 import {motion} from 'framer-motion';

+ 0 - 1
static/app/components/autoSelectText.tsx

@@ -1,5 +1,4 @@
 import {forwardRef, useImperativeHandle, useRef} from 'react';
-import * as React from 'react';
 import classNames from 'classnames';
 
 import {selectText} from 'sentry/utils/selectText';

Some files were not shown because too many files changed in this diff