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

16 lines
536 B
JavaScript
Raw Normal View History

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