Просмотр исходного кода

chore: Apply import codemod to static/app (#25856)

Apply the import codemod to static/app.
Mark Story 3 лет назад
Родитель
Сommit
9707fd3f98

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

@@ -1,5 +1,3 @@
-import React from 'react';
-
 import AlertActions from 'app/actions/alertActions';
 import ExternalLink from 'app/components/links/externalLink';
 import {DEPLOY_PREVIEW_CONFIG, EXPERIMENTAL_SPA} from 'app/constants';

+ 1 - 1
static/app/actionCreators/indicator.tsx

@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
 import styled from '@emotion/styled';
 import * as Sentry from '@sentry/react';
 

+ 1 - 1
static/app/actionCreators/modal.tsx

@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
 // eslint-disable-next-line no-restricted-imports
 import {Modal as BoostrapModal} from 'react-bootstrap';
 import {css} from '@emotion/react';

+ 0 - 1
static/app/actionCreators/navigation.tsx

@@ -1,4 +1,3 @@
-import React from 'react';
 import {InjectedRouter} from 'react-router/lib/Router';
 import {Location} from 'history';
 

+ 1 - 1
static/app/bootstrap/exportGlobals.tsx

@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
 import ReactDOM from 'react-dom';
 import * as Router from 'react-router';
 import * as Sentry from '@sentry/react';

+ 0 - 1
static/app/bootstrap/renderMain.tsx

@@ -1,4 +1,3 @@
-import React from 'react';
 import ReactDOM from 'react-dom';
 
 import {ROOT_ELEMENT} from 'app/constants';

+ 0 - 1
static/app/bootstrap/renderPipelineView.tsx

@@ -1,4 +1,3 @@
-import React from 'react';
 import ReactDOM from 'react-dom';
 
 import {ROOT_ELEMENT} from 'app/constants';

+ 1 - 1
static/app/components/acl/access.tsx

@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
 
 import Alert from 'app/components/alert';
 import {IconInfo} from 'app/icons';

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

@@ -1,5 +1,3 @@
-import React from 'react';
-
 import Alert from 'app/components/alert';
 import {IconInfo} from 'app/icons';
 import {t} from 'app/locale';

+ 1 - 1
static/app/components/acl/demoModeGate.tsx

@@ -1,4 +1,4 @@
-import React from 'react';
+import * as React from 'react';
 
 import ConfigStore from 'app/stores/configStore';
 import {Organization} from 'app/types';

Некоторые файлы не были показаны из-за большого количества измененных файлов