Remove unused state fields

This commit is contained in:
Pavel Dohnal
2019-01-23 13:09:07 +01:00
parent dbfa672542
commit f054f7ba1f
4 changed files with 1 additions and 5 deletions

View File

@@ -33,8 +33,7 @@
"react/no-access-state-in-setstate": 0, // todo "react/no-access-state-in-setstate": 0, // todo
"react/jsx-closing-tag-location": 0, // todo "react/jsx-closing-tag-location": 0, // todo
"react/require-default-props": 0, // todo "react/require-default-props": 0, // todo
"react/jsx-no-target-blank": 0, // todo "react/jsx-no-target-blank": 0 // todo
"react/no-unused-state": 0 // todo
} }
} }

View File

@@ -26,7 +26,6 @@ class Breadcrumb extends React.Component {
]; ];
this.state = { this.state = {
step: null,
steps, steps,
}; };
} }

View File

@@ -7,7 +7,6 @@ import PropTypes from 'prop-types';
class ListingTabs extends React.Component { class ListingTabs extends React.Component {
state = { state = {
tab: null,
tabs: Hooks.applyFilters('mailpoet_newsletters_listings_tabs', [ tabs: Hooks.applyFilters('mailpoet_newsletters_listings_tabs', [
{ {
name: 'standard', name: 'standard',

View File

@@ -64,7 +64,6 @@ class Congratulate extends React.Component {
super(props); super(props);
this.state = { this.state = {
loading: true, loading: true,
fail: false,
newsletter: null, newsletter: null,
testingPassed: false, testingPassed: false,
timeStart: moment(), timeStart: moment(),