lbry-desktop/ui/component/publishPrice/index.js

18 lines
468 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { makeSelectPublishFormValue, doUpdatePublishForm } from 'lbry-redux';
import PublishPage from './view';
const select = state => ({
contentIsFree: makeSelectPublishFormValue('contentIsFree')(state),
fee: makeSelectPublishFormValue('fee')(state),
});
2019-06-27 22:27:38 +02:00
const perform = dispatch => ({
updatePublishForm: values => dispatch(doUpdatePublishForm(values)),
});
export default connect(
select,
2019-06-27 22:27:38 +02:00
perform
)(PublishPage);