Remove all react imports from settings-manager

This commit is contained in:
cyril lopez 2017-09-26 10:54:18 +02:00
parent 17ddbe44e2
commit 38236b30b0
28 changed files with 1 additions and 50 deletions

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';

View File

@ -1,19 +0,0 @@
/**
*
* Debug
*
*/
import React from 'react';
class Debug extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div>
</div>
);
}
}
export default Debug;

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { map } from 'lodash';
import { FormattedMessage } from 'react-intl';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { map, isEmpty } from 'lodash';
import { FormattedMessage } from 'react-intl';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { has, map, forEach } from 'lodash';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { map } from 'lodash';
import WithFormSection from 'components/WithFormSection';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { join, map, take } from 'lodash';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { map } from 'lodash';

View File

@ -27,7 +27,6 @@
* - styles are retrieved from the HOC
*/
import React from 'react';
import PropTypes from 'prop-types';
import { isEmpty, includes, map, mapKeys, isObject, reject, union, uniqBy } from 'lodash';
import { FormattedMessage } from 'react-intl';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { isEmpty, includes, mapKeys, reject, map, isObject } from 'lodash';
import { FormattedMessage } from 'react-intl';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { map } from 'lodash';
import { FormattedMessage } from 'react-intl';

View File

@ -27,7 +27,6 @@
* - styles are retrieved from the HOC
*/
import React from 'react';
import PropTypes from 'prop-types';
import { isEmpty, includes, mapKeys, reject, map, isObject, union, findIndex, uniqBy, remove } from 'lodash';
import { FormattedMessage } from 'react-intl';

View File

@ -11,7 +11,6 @@
* - isChecked: bool
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';

View File

@ -15,7 +15,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { map, isEmpty } from 'lodash';
import { FormattedMessage } from 'react-intl';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { map } from 'lodash';
import PluginLeftMenuSection from 'components/PluginLeftMenuSection';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { map } from 'lodash';
import { FormattedMessage } from 'react-intl';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { map } from 'lodash';
import WithFormSection from 'components/WithFormSection';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
// modal
import { Button, Modal, ModalHeader, ModalBody } from 'reactstrap';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { isEmpty } from 'lodash';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { find, get, join, isObject } from 'lodash';
import { FormattedMessage } from 'react-intl';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import getFlag, { formatLanguageLocale } from '../../utils/getFlag';
import styles from './styles.scss';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { findIndex, forEach, has, isObject , join, pullAt, split, includes} from 'lodash';

View File

@ -4,8 +4,6 @@
*
*/
import React from 'react';
import styles from './styles.scss';
const WithInput = (InnerInput) => class extends React.Component { // eslint-disable-line react/prefer-stateless-function

View File

@ -5,7 +5,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';

View File

@ -4,7 +4,6 @@
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators, compose } from 'redux';
@ -29,7 +28,6 @@ import { router } from 'app';
// design
import ContentHeader from 'components/ContentHeader';
import Debug from 'components/Debug';
import EditForm from 'components/EditForm';
import HeaderNav from 'components/HeaderNav';
import List from 'components/List';
@ -82,7 +80,6 @@ export class HomePage extends React.Component { // eslint-disable-line react/pre
defaultComponent: EditForm,
list: List,
defaultComponentWithEnvironments: HeaderNav,
debug: Debug,
};
// allowing state only for database modal purpose
@ -254,7 +251,7 @@ export class HomePage extends React.Component { // eslint-disable-line react/pre
const body = this.sendUpdatedParams();
const apiUrl = `${databaseName}/${this.props.match.params.env}`;
const formErrors = checkFormValidity(body, this.props.home.formValidations, this.props.home.formErrors);
if (isEmpty(body)) return window.Strapi.notification.info('settings-manager.strapi.notification.info.settingsEqual');

View File

@ -9,7 +9,6 @@
* the linting exception.
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
export default class NotFound extends React.Component {