import React from 'react'; import PreviewDropzone from './PreviewDropzone.jsx'; import PublishTitleInput from './PublishTitleInput.jsx'; import ChannelSelector from './ChannelSelector.jsx'; import PublishUrlInput from './PublishUrlInput.jsx'; import PublishThumbnailInput from './PublishThumbnailInput.jsx'; import PublishMetadataInputs from './PublishMetadataInputs.jsx'; import AnonymousOrChannelSelect from './AnonymousOrChannelSelect.jsx'; import { selectFile, clearFile } from '../actions'; import { connect } from 'react-redux'; class PublishForm extends React.Component { constructor (props) { super(props); // set defaults this.state = { error : null, showMetadataInputs: false, }; this.publish = this.publish.bind(this); } publish () { // publish the asset } render () { return (
{ (this.props.file.type === 'video/mp4') && }

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.

); } }; const mapStateToProps = state => { return { loggedInChannelName : state.loggedInChannelName, loggedInChannelShortId: state.loggedInChannelShortId, publishToChannel : state.publishToChannel, file : state.file, title : state.title, claim : state.claim, thumbnail : state.thumbnail, description : state.description, license : state.license, nsfw : state.nsfw, }; }; const mapDispatchToProps = dispatch => { return { onFileSelect: (file) => { dispatch(selectFile(file)); }, onFileClear: () => { dispatch(clearFile()); }, }; } export default connect(mapStateToProps, mapDispatchToProps)(PublishForm);