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

16 lines
521 B
JavaScript
Raw Permalink Normal View History

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