From a7a67f6561c7970261e614d44876454a76cb02d1 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 26 Jun 2019 16:36:17 -0400 Subject: [PATCH] fix: PublishPrice props --- src/ui/component/publishPrice/index.js | 41 +++----------------------- 1 file changed, 4 insertions(+), 37 deletions(-) diff --git a/src/ui/component/publishPrice/index.js b/src/ui/component/publishPrice/index.js index 8389f1622..ffaa82b58 100644 --- a/src/ui/component/publishPrice/index.js +++ b/src/ui/component/publishPrice/index.js @@ -1,46 +1,13 @@ import { connect } from 'react-redux'; -import { doResolveUri, selectBalance } from 'lbry-redux'; -import { - selectPublishFormValues, - selectIsStillEditing, - selectMyClaimForUri, - selectIsResolvingPublishUris, - selectTakeOverAmount, -} from 'redux/selectors/publish'; -import { - doResetThumbnailStatus, - doClearPublish, - doUpdatePublishForm, - doPublish, - doPrepareEdit, -} from 'redux/actions/publish'; -import { selectUnclaimedRewardValue } from 'lbryinc'; +import { makeSelectPublishFormValue } from 'redux/selectors/publish'; import PublishPage from './view'; const select = state => ({ - ...selectPublishFormValues(state), - // The winning claim for a short lbry uri - amountNeededForTakeover: selectTakeOverAmount(state), - // My previously published claims under this short lbry uri - myClaimForUri: selectMyClaimForUri(state), - // If I clicked the "edit" button, have I changed the uri? - // Need this to make it easier to find the source on previously published content - isStillEditing: selectIsStillEditing(state), - balance: selectBalance(state), - isResolvingUri: selectIsResolvingPublishUris(state), - totalRewardValue: selectUnclaimedRewardValue(state), -}); - -const perform = dispatch => ({ - updatePublishForm: value => dispatch(doUpdatePublishForm(value)), - clearPublish: () => dispatch(doClearPublish()), - resolveUri: uri => dispatch(doResolveUri(uri)), - publish: params => dispatch(doPublish(params)), - prepareEdit: (claim, uri) => dispatch(doPrepareEdit(claim, uri)), - resetThumbnailStatus: () => dispatch(doResetThumbnailStatus()), + contentIsFree: makeSelectPublishFormValue('contentIsFree')(state), + fee: makeSelectPublishFormValue('fee')(state), }); export default connect( select, - perform + null )(PublishPage);