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

14 lines
421 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
import { doUpdatePublishForm, makeSelectPublishFormValue } from 'lbry-redux';
2020-07-29 22:30:26 +02:00
import PublishDescription from './view';
const select = state => ({
description: makeSelectPublishFormValue('description')(state),
});
const perform = dispatch => ({
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
});
2020-07-29 22:30:26 +02:00
export default connect(select, perform)(PublishDescription);