2019-06-28 09:27:55 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { makeSelectPublishFormValue, selectIsStillEditing } from 'redux/selectors/publish';
|
2019-06-28 09:27:55 +02:00
|
|
|
import PublishPage from './view';
|
|
|
|
|
2021-04-16 04:52:41 +02:00
|
|
|
const select = (state) => ({
|
2020-07-28 04:19:00 +02:00
|
|
|
bid: makeSelectPublishFormValue('bid')(state),
|
2019-06-28 09:27:55 +02:00
|
|
|
name: makeSelectPublishFormValue('name')(state),
|
|
|
|
title: makeSelectPublishFormValue('title')(state),
|
2020-03-02 18:11:14 +01:00
|
|
|
bidError: makeSelectPublishFormValue('bidError')(state),
|
2020-07-30 08:46:56 +02:00
|
|
|
editingURI: makeSelectPublishFormValue('editingURI')(state),
|
2019-06-28 09:27:55 +02:00
|
|
|
uploadThumbnailStatus: makeSelectPublishFormValue('uploadThumbnailStatus')(state),
|
2021-04-21 05:30:21 +02:00
|
|
|
thumbnail: makeSelectPublishFormValue('thumbnail')(state),
|
2021-04-21 05:31:54 +02:00
|
|
|
thumbnailError: makeSelectPublishFormValue('thumbnailError')(state),
|
2019-06-28 09:27:55 +02:00
|
|
|
isStillEditing: selectIsStillEditing(state),
|
|
|
|
});
|
|
|
|
|
2020-07-28 04:19:00 +02:00
|
|
|
export default connect(select, null)(PublishPage);
|