);
}
}
const mapStateToProps = state => {
return {
- publishInChannel: state.publishInChannel,
+ loggedInChannelName: state.loggedInChannel.name,
+ publishInChannel : state.publishInChannel,
};
};
diff --git a/react/containers/PublishForm.jsx b/react/containers/PublishForm.jsx
index 1ffcf3ff..7148ab92 100644
--- a/react/containers/PublishForm.jsx
+++ b/react/containers/PublishForm.jsx
@@ -1,14 +1,13 @@
import React from 'react';
-import { connect } from 'react-redux';
-import { getCookie } from '../utils/cookies.js';
+import {connect} from 'react-redux';
+import {selectFile, clearFile, updateLoggedInChannel, updatePublishStatus, updateError} from '../actions';
+import {getCookie} from '../utils/cookies.js';
import Dropzone from './Dropzone.jsx';
import PublishTitleInput from './PublishTitleInput.jsx';
-import ChannelSelector from '../components/ChannelSelector.jsx';
import PublishUrlInput from './PublishUrlInput.jsx';
import PublishThumbnailInput from './PublishThumbnailInput.jsx';
import PublishMetadataInputs from './PublishMetadataInputs.jsx';
-import AnonymousOrChannelSelect from './ChannelSelect.jsx';
-import {selectFile, clearFile, updateLoggedInChannel, updatePublishStatus, updateError} from '../actions';
+import ChannelSelect from './ChannelSelect.jsx';
import * as publishStates from '../constants/publishing_states';
class PublishForm extends React.Component {
@@ -132,55 +131,43 @@ class PublishForm extends React.Component {
return (
-
-
-
-
-
-
-
-
-
-
-
+
-
{ (this.props.file.type === 'video/mp4') && (
-
+
)}
-
-
-
-
{this.props.publishSubmitError}
+ { this.props.publishSubmitError && (
+
+
{this.props.publishSubmitError}
+
+ )}
+
-
-
+
-
By clicking 'Upload', you affirm that you have the rights to publish this content to the LBRY network, and that you understand the properties of publishing it to a decentralized, user-controlled network. Read more.