mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-06 14:52:33 +00:00
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
/* @flow */
|
|
'use strict';
|
|
|
|
import React, { Component, PropTypes } from 'react';
|
|
import { bindActionCreators } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
|
|
import * as SendFormActions from '../../../actions/SendFormActions';
|
|
import SendForm from './SendForm';
|
|
|
|
const mapStateToProps = (state, own) => {
|
|
return {
|
|
location: state.router.location,
|
|
devices: state.connect.devices,
|
|
accounts: state.accounts,
|
|
discovery: state.discovery,
|
|
tokens: state.tokens,
|
|
pending: state.pending,
|
|
sendForm: state.sendForm,
|
|
fiat: state.fiat,
|
|
localStorage: state.localStorage
|
|
};
|
|
}
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
sendFormActions: bindActionCreators(SendFormActions, dispatch),
|
|
initAccount: bindActionCreators(SendFormActions.init, dispatch),
|
|
updateAccount: bindActionCreators(SendFormActions.update, dispatch),
|
|
disposeAccount: bindActionCreators(SendFormActions.dispose, dispatch),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendForm) |