mirror of
https://github.com/LBRYFoundation/lbry-android.git
synced 2025-09-02 01:55:10 +00:00
25 lines
613 B
JavaScript
25 lines
613 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
doToast,
|
|
doSendDraftTransaction,
|
|
selectDraftTransaction,
|
|
selectDraftTransactionError,
|
|
selectBalance,
|
|
} from 'lbry-redux';
|
|
import WalletSend from './view';
|
|
|
|
const select = state => ({
|
|
balance: selectBalance(state),
|
|
draftTransaction: selectDraftTransaction(state),
|
|
transactionError: selectDraftTransactionError(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
sendToAddress: (address, amount) => dispatch(doSendDraftTransaction(address, amount)),
|
|
notify: data => dispatch(doToast(data)),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(WalletSend);
|