lbry-react-native/src/component/modalTipView/index.js
Akinwale Ariwodola dd7f1e82ba
tip button on channels, modal send tip component ()
* tip button on channels, modal send tip component
* add tip modal to file view
2019-12-18 11:01:33 +01:00

18 lines
504 B
JavaScript

import { connect } from 'react-redux';
import { doSendTip, doToast, selectBalance } from 'lbry-redux';
import ModalTipView from './view';
const select = state => ({
balance: selectBalance(state),
});
const perform = dispatch => ({
notify: data => dispatch(doToast(data)),
sendTip: (amount, claimId, isSupport, successCallback, errorCallback) =>
dispatch(doSendTip(amount, claimId, isSupport, successCallback, errorCallback)),
});
export default connect(
select,
perform
)(ModalTipView);