Remove bindActionCreators({}, dispatch) (empty) (#4135)
This commit is contained in:
		
							parent
							
								
									32dbf9958e
								
							
						
					
					
						commit
						3e74d46a06
					
				| @ -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'; | ||||
| @ -470,11 +469,7 @@ function mapStateToProps (initState, initProps) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(ExecuteContract); | ||||
|  | ||||
| @ -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'; | ||||
| @ -107,11 +106,7 @@ function mapStateToProps (state) { | ||||
|   return { images }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(Balance); | ||||
|  | ||||
| @ -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'; | ||||
| 
 | ||||
| @ -113,11 +112,7 @@ function mapStateToProps (state) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(BlockStatus); | ||||
|  | ||||
| @ -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'; | ||||
| @ -162,11 +161,7 @@ function mapStateToProps (state) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(InputAddress); | ||||
|  | ||||
| @ -16,7 +16,6 @@ | ||||
| 
 | ||||
| import React, { Component, PropTypes } from 'react'; | ||||
| import { connect } from 'react-redux'; | ||||
| import { bindActionCreators } from 'redux'; | ||||
| 
 | ||||
| import AddressSelect from '../AddressSelect'; | ||||
| 
 | ||||
| @ -68,11 +67,7 @@ function mapStateToProps (state) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(InputAddressSelect); | ||||
|  | ||||
| @ -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'; | ||||
| 
 | ||||
| @ -113,11 +112,7 @@ function mapStateToProps (state) { | ||||
|   return { settings }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(Modal); | ||||
|  | ||||
| @ -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'; | ||||
| 
 | ||||
| @ -54,11 +53,7 @@ function mapStateToProps (state) { | ||||
|   return { secureToken }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(SignerIcon); | ||||
|  | ||||
| @ -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'; | ||||
| @ -169,11 +168,7 @@ function mapStateToProps (state) { | ||||
|   return { isTest }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(TxHash); | ||||
|  | ||||
| @ -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'; | ||||
| @ -92,11 +91,7 @@ function mapStateToProps (state) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(TxList); | ||||
|  | ||||
| @ -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'; | ||||
| 
 | ||||
| @ -118,11 +117,7 @@ function mapStateToProps (state) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(Transactions); | ||||
|  | ||||
| @ -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'; | ||||
| 
 | ||||
| @ -133,11 +132,7 @@ function mapStateToProps (state) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(Status); | ||||
|  | ||||
| @ -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'; | ||||
| 
 | ||||
| @ -123,11 +122,7 @@ function mapStateToProps (state) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(Application); | ||||
|  | ||||
| @ -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'; | ||||
| @ -169,11 +168,7 @@ function mapStateToProps (state) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(Dapps); | ||||
|  | ||||
| @ -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'; | ||||
| 
 | ||||
| @ -162,11 +161,7 @@ function mapStateToProps (state) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(ParityBar); | ||||
|  | ||||
| @ -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'; | ||||
| 
 | ||||
| @ -258,11 +257,7 @@ function mapStateToProps (_, initProps) { | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
| function mapDispatchToProps (dispatch) { | ||||
|   return bindActionCreators({}, dispatch); | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|   mapStateToProps, | ||||
|   mapDispatchToProps | ||||
|   null | ||||
| )(TransactionPendingFormConfirm); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user