2019-06-28 09:27:55 +02:00
|
|
|
import { connect } from 'react-redux';
|
2019-07-03 04:30:34 +02:00
|
|
|
import { doUpdatePublishForm, makeSelectPublishFormValue } from 'lbry-redux';
|
2019-06-28 09:27:55 +02:00
|
|
|
import PublishPage from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
title: makeSelectPublishFormValue('title')(state),
|
|
|
|
description: makeSelectPublishFormValue('description')(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(PublishPage);
|