Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Remove bindActionCreators({}, dispatch) (empty) (#4135)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored and arkpar committed Jan 12, 2017
1 parent 13219f2 commit 74ddb71
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 97 deletions.
7 changes: 1 addition & 6 deletions js/src/modals/ExecuteContract/executeContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';

import { toWei } from '~/api/util/wei';
import { BusyStep, Button, CompletedStep, GasPriceEditor, IdentityIcon, Modal, TxHash, Warning } from '~/ui';
Expand Down Expand Up @@ -470,11 +469,7 @@ function mapStateToProps (initState, initProps) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(ExecuteContract);
7 changes: 1 addition & 6 deletions js/src/ui/Balance/balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import BigNumber from 'bignumber.js';
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';

import unknownImage from '../../../assets/images/contracts/unknown-64x64.png';
import styles from './balance.css';
Expand Down Expand Up @@ -107,11 +106,7 @@ function mapStateToProps (state) {
return { images };
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(Balance);
7 changes: 1 addition & 6 deletions js/src/ui/BlockStatus/blockStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';

import styles from './blockStatus.css';

Expand Down Expand Up @@ -113,11 +112,7 @@ function mapStateToProps (state) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(BlockStatus);
7 changes: 1 addition & 6 deletions js/src/ui/Form/InputAddress/inputAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';

import util from '~/api/util';
import { nodeOrStringProptype } from '~/util/proptypes';
Expand Down Expand Up @@ -174,11 +173,7 @@ function mapStateToProps (state) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(InputAddress);
7 changes: 1 addition & 6 deletions js/src/ui/Form/InputAddressSelect/inputAddressSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';

import AddressSelect from '../AddressSelect';

Expand Down Expand Up @@ -68,11 +67,7 @@ function mapStateToProps (state) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(InputAddressSelect);
9 changes: 2 additions & 7 deletions js/src/ui/Modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

import { Dialog } from 'material-ui';
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';

import { nodeOrStringProptype } from '~/util/proptypes';

Expand Down Expand Up @@ -113,11 +112,7 @@ function mapStateToProps (state) {
return { settings };
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(Modal);
7 changes: 1 addition & 6 deletions js/src/ui/SignerIcon/signerIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { keccak_256 } from 'js-sha3'; // eslint-disable-line camelcase
import ActionFingerprint from 'material-ui/svg-icons/action/fingerprint';

Expand Down Expand Up @@ -54,11 +53,7 @@ function mapStateToProps (state) {
return { secureToken };
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(SignerIcon);
9 changes: 2 additions & 7 deletions js/src/ui/TxHash/txHash.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

import BigNumber from 'bignumber.js';
import { LinearProgress } from 'material-ui';
import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { LinearProgress } from 'material-ui';

import { txLink } from '~/3rdparty/etherscan/links';
import ShortenedHash from '../ShortenedHash';
Expand Down Expand Up @@ -169,11 +168,7 @@ function mapStateToProps (state) {
return { isTest };
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(TxHash);
9 changes: 2 additions & 7 deletions js/src/ui/TxList/txList.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { observer } from 'mobx-react';

import Store from './store';
import TxRow from './TxRow';
Expand Down Expand Up @@ -92,11 +91,7 @@ function mapStateToProps (state) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(TxList);
7 changes: 1 addition & 6 deletions js/src/views/Account/Transactions/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';

import { Container, TxList, Loading } from '~/ui';

Expand Down Expand Up @@ -118,11 +117,7 @@ function mapStateToProps (state) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(Transactions);
7 changes: 1 addition & 6 deletions js/src/views/Application/Status/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';

import { BlockStatus } from '~/ui';

Expand Down Expand Up @@ -141,11 +140,7 @@ function mapStateToProps (state) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(Status);
9 changes: 2 additions & 7 deletions js/src/views/Application/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { observer } from 'mobx-react';

import UpgradeStore from '~/modals/UpgradeParity/store';

Expand Down Expand Up @@ -123,11 +122,7 @@ function mapStateToProps (state) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(Application);
9 changes: 2 additions & 7 deletions js/src/views/Dapps/dapps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

import { omitBy } from 'lodash';
import { Checkbox } from 'material-ui';
import { observer } from 'mobx-react';
import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { omitBy } from 'lodash';

import { AddDapps, DappPermissions } from '~/modals';
import PermissionStore from '~/modals/DappPermissions/store';
Expand Down Expand Up @@ -169,11 +168,7 @@ function mapStateToProps (state) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(Dapps);
7 changes: 1 addition & 6 deletions js/src/views/ParityBar/parityBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import ActionFingerprint from 'material-ui/svg-icons/action/fingerprint';
import ContentClear from 'material-ui/svg-icons/content/clear';

Expand Down Expand Up @@ -162,11 +161,7 @@ function mapStateToProps (state) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(ParityBar);
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
// You should have received a copy of the GNU General Public License
// 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 ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import RaisedButton from 'material-ui/RaisedButton';
import ReactTooltip from 'react-tooltip';
import keycode from 'keycode';

import { Form, Input, IdentityIcon } from '~/ui';

Expand Down Expand Up @@ -258,11 +257,7 @@ function mapStateToProps (_, initProps) {
};
}

function mapDispatchToProps (dispatch) {
return bindActionCreators({}, dispatch);
}

export default connect(
mapStateToProps,
mapDispatchToProps
null
)(TransactionPendingFormConfirm);

0 comments on commit 74ddb71

Please sign in to comment.