lbry-desktop/ui/component/supportsLiquidate/index.js
jessop 7730ee1e3f remove dependency on full claim list
paginate claim list
improve handling of pending publishes
add abandon to publishes list previews

use bodyCard

fix publish edit notification
2020-05-01 13:56:21 -04:00

31 lines
1,016 B
JavaScript

import { connect } from 'react-redux';
import {
selectBalance,
selectTotalBalance,
selectClaimsBalance,
selectSupportsBalance,
selectTipsBalance,
makeSelectMetadataForUri,
makeSelectClaimForUri,
doSupportAbandonForClaim,
selectAbandonClaimSupportError,
} from 'lbry-redux';
import SupportsLiquidate from './view';
const select = (state, props) => ({
balance: selectBalance(state),
totalBalance: selectTotalBalance(state),
claimsBalance: selectClaimsBalance(state) || undefined,
supportsBalance: selectSupportsBalance(state) || undefined,
tipsBalance: selectTipsBalance(state) || undefined,
claim: makeSelectClaimForUri(props.uri)(state),
metadata: makeSelectMetadataForUri(props.uri)(state),
abandonClaimError: selectAbandonClaimSupportError(state),
});
const perform = dispatch => ({
abandonSupportForClaim: (claimId, type, keep, preview) =>
dispatch(doSupportAbandonForClaim(claimId, type, keep, preview)),
});
export default connect(select, perform)(SupportsLiquidate);