mirror of https://github.com/trezor/trezor-wallet
parent
50767c77c3
commit
c47ca11f8b
@ -0,0 +1,53 @@
|
|||||||
|
/* @flow */
|
||||||
|
|
||||||
|
import { bindActionCreators } from 'redux';
|
||||||
|
import { connect } from 'react-redux';
|
||||||
|
import { injectIntl } from 'react-intl';
|
||||||
|
|
||||||
|
import SendFormActions from 'actions/ripple/SendFormActions';
|
||||||
|
import { openQrModal } from 'actions/ModalActions';
|
||||||
|
import type { MapStateToProps, MapDispatchToProps } from 'react-redux';
|
||||||
|
import type { State, Dispatch } from 'flowtype';
|
||||||
|
import AccountSend from './index';
|
||||||
|
|
||||||
|
type OwnProps = {
|
||||||
|
intl: any,
|
||||||
|
};
|
||||||
|
|
||||||
|
export type StateProps = {
|
||||||
|
selectedAccount: $ElementType<State, 'selectedAccount'>,
|
||||||
|
sendForm: $ElementType<State, 'sendFormRipple'>,
|
||||||
|
wallet: $ElementType<State, 'wallet'>,
|
||||||
|
fiat: $ElementType<State, 'fiat'>,
|
||||||
|
localStorage: $ElementType<State, 'localStorage'>,
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DispatchProps = {
|
||||||
|
sendFormActions: typeof SendFormActions,
|
||||||
|
openQrModal: typeof openQrModal,
|
||||||
|
};
|
||||||
|
|
||||||
|
export type Props = OwnProps & StateProps & DispatchProps;
|
||||||
|
|
||||||
|
const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (
|
||||||
|
state: State
|
||||||
|
): StateProps => ({
|
||||||
|
selectedAccount: state.selectedAccount,
|
||||||
|
sendForm: state.sendFormRipple,
|
||||||
|
wallet: state.wallet,
|
||||||
|
fiat: state.fiat,
|
||||||
|
localStorage: state.localStorage,
|
||||||
|
});
|
||||||
|
|
||||||
|
const mapDispatchToProps: MapDispatchToProps<Dispatch, OwnProps, DispatchProps> = (
|
||||||
|
dispatch: Dispatch
|
||||||
|
): DispatchProps => ({
|
||||||
|
sendFormActions: bindActionCreators(SendFormActions, dispatch),
|
||||||
|
});
|
||||||
|
|
||||||
|
export default injectIntl(
|
||||||
|
connect(
|
||||||
|
mapStateToProps,
|
||||||
|
mapDispatchToProps
|
||||||
|
)(AccountSend)
|
||||||
|
);
|
@ -0,0 +1,13 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import Content from 'views/Wallet/components/Content';
|
||||||
|
import Title from 'views/Wallet/components/Title';
|
||||||
|
|
||||||
|
const AccountSend = () => {
|
||||||
|
return (
|
||||||
|
<Content>
|
||||||
|
<Title>bitcoin</Title>
|
||||||
|
</Content>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default AccountSend;
|
Loading…
Reference in new issue