lbry-desktop/ui/component/publishFormErrors/index.js
Thomas Zarebczan 3ee25f8251
fixes: default channel bid and publish form (#3781)
Changes channel default bid and fixes publish form errors around bid amount.
2020-03-02 12:11:14 -05:00

18 lines
649 B
JavaScript

import { connect } from 'react-redux';
import { makeSelectPublishFormValue, selectIsStillEditing } from 'lbry-redux';
import PublishPage from './view';
const select = state => ({
name: makeSelectPublishFormValue('name')(state),
title: makeSelectPublishFormValue('title')(state),
bid: makeSelectPublishFormValue('bid')(state),
bidError: makeSelectPublishFormValue('bidError')(state),
editingUri: makeSelectPublishFormValue('editingUri')(state),
uploadThumbnailStatus: makeSelectPublishFormValue('uploadThumbnailStatus')(state),
isStillEditing: selectIsStillEditing(state),
});
export default connect(
select,
null
)(PublishPage);