2019-06-28 09:27:55 +02:00
|
|
|
import { connect } from 'react-redux';
|
2019-07-03 04:30:34 +02:00
|
|
|
|
|
|
|
import { selectBalance, selectIsStillEditing, makeSelectPublishFormValue, doUpdatePublishForm } from 'lbry-redux';
|
2019-06-28 09:27:55 +02:00
|
|
|
import PublishPage from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
name: makeSelectPublishFormValue('name')(state),
|
|
|
|
filePath: makeSelectPublishFormValue('filePath')(state),
|
|
|
|
isStillEditing: selectIsStillEditing(state),
|
|
|
|
balance: selectBalance(state),
|
2019-10-11 02:37:18 +02:00
|
|
|
publishing: makeSelectPublishFormValue('publishing')(state),
|
2019-06-28 09:27:55 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(PublishPage);
|