mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +00:00
Remove all react imports from settings-manager
This commit is contained in:
parent
17ddbe44e2
commit
38236b30b0
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import styles from './styles.scss';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import styles from './styles.scss';
|
||||
|
||||
@ -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;
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map, isEmpty } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { has, map, forEach } from 'lodash';
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import WithFormSection from 'components/WithFormSection';
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { map } from 'lodash';
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -15,7 +15,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map, isEmpty } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import PluginLeftMenuSection from 'components/PluginLeftMenuSection';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { NavLink } from 'react-router-dom';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import WithFormSection from 'components/WithFormSection';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
// modal
|
||||
import { Button, Modal, ModalHeader, ModalBody } from 'reactstrap';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { isEmpty } from 'lodash';
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import getFlag, { formatLanguageLocale } from '../../utils/getFlag';
|
||||
import styles from './styles.scss';
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { findIndex, forEach, has, isObject , join, pullAt, split, includes} from 'lodash';
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { createStructuredSelector } from 'reselect';
|
||||
|
||||
@ -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');
|
||||
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@
|
||||
* the linting exception.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
export default class NotFound extends React.Component {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user