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

15 lines
480 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { makeSelectPublishFormValue } from 'redux/selectors/publish';
import { doUpdatePublishForm } from 'redux/actions/publish';
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);