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

18 lines
777 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
import { makeSelectPublishFormValue, selectIsStillEditing } from 'lbry-redux';
import PublishPage from './view';
2021-04-16 04:52:41 +02:00
const select = (state) => ({
bid: makeSelectPublishFormValue('bid')(state),
name: makeSelectPublishFormValue('name')(state),
title: makeSelectPublishFormValue('title')(state),
bidError: makeSelectPublishFormValue('bidError')(state),
2020-07-30 08:46:56 +02:00
editingURI: makeSelectPublishFormValue('editingURI')(state),
uploadThumbnailStatus: makeSelectPublishFormValue('uploadThumbnailStatus')(state),
thumbnail: makeSelectPublishFormValue('thumbnail')(state),
thumbnailError: makeSelectPublishFormValue('thumbnailError')(state),
isStillEditing: selectIsStillEditing(state),
});
export default connect(select, null)(PublishPage);