mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
/* @flow */
|
|
'use strict';
|
|
|
|
import React, { Component, PropTypes } from 'react';
|
|
import { bindActionCreators } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
|
|
import SendForm from '../components/wallet/send/SendForm';
|
|
import * as SendFormActions from '../actions/SendFormActions';
|
|
|
|
function 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
|
|
};
|
|
}
|
|
|
|
function 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); |