Remove bindActionCreators({}, dispatch) (empty) (#4135)

This commit is contained in:
Jaco Greeff 2017-01-11 17:02:53 +01:00 committed by GitHub
parent 32dbf9958e
commit 3e74d46a06
15 changed files with 22 additions and 97 deletions

View File

@ -20,7 +20,6 @@ import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { toWei } from '~/api/util/wei'; import { toWei } from '~/api/util/wei';
import { BusyStep, Button, CompletedStep, GasPriceEditor, IdentityIcon, Modal, TxHash, Warning } from '~/ui'; import { BusyStep, Button, CompletedStep, GasPriceEditor, IdentityIcon, Modal, TxHash, Warning } from '~/ui';
@ -470,11 +469,7 @@ function mapStateToProps (initState, initProps) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(ExecuteContract); )(ExecuteContract);

View File

@ -17,7 +17,6 @@
import BigNumber from 'bignumber.js'; import BigNumber from 'bignumber.js';
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import unknownImage from '../../../assets/images/contracts/unknown-64x64.png'; import unknownImage from '../../../assets/images/contracts/unknown-64x64.png';
import styles from './balance.css'; import styles from './balance.css';
@ -107,11 +106,7 @@ function mapStateToProps (state) {
return { images }; return { images };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(Balance); )(Balance);

View File

@ -17,7 +17,6 @@
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import styles from './blockStatus.css'; import styles from './blockStatus.css';
@ -113,11 +112,7 @@ function mapStateToProps (state) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(BlockStatus); )(BlockStatus);

View File

@ -16,7 +16,6 @@
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import util from '~/api/util'; import util from '~/api/util';
import { nodeOrStringProptype } from '~/util/proptypes'; import { nodeOrStringProptype } from '~/util/proptypes';
@ -162,11 +161,7 @@ function mapStateToProps (state) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(InputAddress); )(InputAddress);

View File

@ -16,7 +16,6 @@
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AddressSelect from '../AddressSelect'; import AddressSelect from '../AddressSelect';
@ -68,11 +67,7 @@ function mapStateToProps (state) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(InputAddressSelect); )(InputAddressSelect);

View File

@ -16,9 +16,8 @@
import { Dialog } from 'material-ui'; import { Dialog } from 'material-ui';
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { nodeOrStringProptype } from '~/util/proptypes'; import { nodeOrStringProptype } from '~/util/proptypes';
@ -113,11 +112,7 @@ function mapStateToProps (state) {
return { settings }; return { settings };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(Modal); )(Modal);

View File

@ -16,7 +16,6 @@
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { keccak_256 } from 'js-sha3'; // eslint-disable-line camelcase import { keccak_256 } from 'js-sha3'; // eslint-disable-line camelcase
import ActionFingerprint from 'material-ui/svg-icons/action/fingerprint'; import ActionFingerprint from 'material-ui/svg-icons/action/fingerprint';
@ -54,11 +53,7 @@ function mapStateToProps (state) {
return { secureToken }; return { secureToken };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(SignerIcon); )(SignerIcon);

View File

@ -15,11 +15,10 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>. // along with Parity. If not, see <http://www.gnu.org/licenses/>.
import BigNumber from 'bignumber.js'; import BigNumber from 'bignumber.js';
import { LinearProgress } from 'material-ui';
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { LinearProgress } from 'material-ui';
import { txLink } from '~/3rdparty/etherscan/links'; import { txLink } from '~/3rdparty/etherscan/links';
import ShortenedHash from '../ShortenedHash'; import ShortenedHash from '../ShortenedHash';
@ -169,11 +168,7 @@ function mapStateToProps (state) {
return { isTest }; return { isTest };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(TxHash); )(TxHash);

View File

@ -14,10 +14,9 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>. // along with Parity. If not, see <http://www.gnu.org/licenses/>.
import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { observer } from 'mobx-react';
import Store from './store'; import Store from './store';
import TxRow from './TxRow'; import TxRow from './TxRow';
@ -92,11 +91,7 @@ function mapStateToProps (state) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(TxList); )(TxList);

View File

@ -18,7 +18,6 @@ import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Container, TxList, Loading } from '~/ui'; import { Container, TxList, Loading } from '~/ui';
@ -118,11 +117,7 @@ function mapStateToProps (state) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(Transactions); )(Transactions);

View File

@ -17,7 +17,6 @@
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { BlockStatus } from '~/ui'; import { BlockStatus } from '~/ui';
@ -133,11 +132,7 @@ function mapStateToProps (state) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(Status); )(Status);

View File

@ -14,10 +14,9 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>. // along with Parity. If not, see <http://www.gnu.org/licenses/>.
import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { observer } from 'mobx-react';
import UpgradeStore from '~/modals/UpgradeParity/store'; import UpgradeStore from '~/modals/UpgradeParity/store';
@ -123,11 +122,7 @@ function mapStateToProps (state) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(Application); )(Application);

View File

@ -14,13 +14,12 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>. // along with Parity. If not, see <http://www.gnu.org/licenses/>.
import { omitBy } from 'lodash';
import { Checkbox } from 'material-ui'; import { Checkbox } from 'material-ui';
import { observer } from 'mobx-react'; import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { omitBy } from 'lodash';
import { AddDapps, DappPermissions } from '~/modals'; import { AddDapps, DappPermissions } from '~/modals';
import PermissionStore from '~/modals/DappPermissions/store'; import PermissionStore from '~/modals/DappPermissions/store';
@ -169,11 +168,7 @@ function mapStateToProps (state) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(Dapps); )(Dapps);

View File

@ -17,7 +17,6 @@
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router'; import { Link } from 'react-router';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import ActionFingerprint from 'material-ui/svg-icons/action/fingerprint'; import ActionFingerprint from 'material-ui/svg-icons/action/fingerprint';
import ContentClear from 'material-ui/svg-icons/content/clear'; import ContentClear from 'material-ui/svg-icons/content/clear';
@ -162,11 +161,7 @@ function mapStateToProps (state) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(ParityBar); )(ParityBar);

View File

@ -14,13 +14,12 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>. // along with Parity. If not, see <http://www.gnu.org/licenses/>.
import keycode from 'keycode';
import RaisedButton from 'material-ui/RaisedButton';
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import RaisedButton from 'material-ui/RaisedButton';
import ReactTooltip from 'react-tooltip'; import ReactTooltip from 'react-tooltip';
import keycode from 'keycode';
import { Form, Input, IdentityIcon } from '~/ui'; import { Form, Input, IdentityIcon } from '~/ui';
@ -258,11 +257,7 @@ function mapStateToProps (_, initProps) {
}; };
} }
function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps null
)(TransactionPendingFormConfirm); )(TransactionPendingFormConfirm);