diff --git a/react/containers/Dropzone/index.js b/react/containers/Dropzone/index.js index 07cc66e0..c66d30a1 100644 --- a/react/containers/Dropzone/index.js +++ b/react/containers/Dropzone/index.js @@ -1,5 +1,5 @@ import { connect } from 'react-redux'; -import { selectFile, updateError } from 'actions/publish'; +import { selectFile, updateError, clearFile } from 'actions/publish'; import View from './view'; const mapStateToProps = ({ publish }) => { @@ -17,6 +17,7 @@ const mapDispatchToProps = dispatch => { dispatch(updateError('publishSubmit', null)); }, onFileError: (value) => { + dispatch(clearFile()); dispatch(updateError('file', value)); }, }; diff --git a/react/containers/Dropzone/view.jsx b/react/containers/Dropzone/view.jsx index 90b7c2a4..7c9a0dd7 100644 --- a/react/containers/Dropzone/view.jsx +++ b/react/containers/Dropzone/view.jsx @@ -83,11 +83,11 @@ class Dropzone extends React.Component { } render () { return ( -
+
- +
-
+
{this.props.file ? (
-
- { this.state.dragOver ? ( -
-

Drop it.

-
- ) : ( - null - )} - { this.state.mouseOver ? ( -
-

{this.props.fileError}

-

Drag & drop image or video here to publish

-

OR

-

CHOOSE FILE

-
- ) : ( - null - )} +
+ { this.state.dragOver ? ( +
+

Drop it.

+
+ ) : ( + null + )} + { this.state.mouseOver ? ( +
+

{this.props.fileError}

+

Drag & drop image or video here to publish

+

OR

+

CHOOSE FILE

+
+ ) : ( + null + )}
) : ( -
+
{ this.state.dragOver ? ( -
-

Drop it.

+
+

Drop it.

) : ( -
-

{this.props.fileError}

+
+

{this.props.fileError}

Drag & drop image or video here to publish

-

OR

-

CHOOSE FILE

+

OR

+

CHOOSE FILE

)}
diff --git a/react/containers/PublishForm/view.jsx b/react/containers/PublishForm/view.jsx index 366e86ba..45cf367d 100644 --- a/react/containers/PublishForm/view.jsx +++ b/react/containers/PublishForm/view.jsx @@ -128,39 +128,39 @@ class PublishForm extends React.Component { } render () { return ( -
-
+
+
-
-
+
+
-
-
-
+
+
+
-
+
{ (this.props.file.type === 'video/mp4') && ( -
+
)} -
+
-
- +
+
-
- +
+
-
-

By clicking 'Publish', 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.

+
+

By clicking 'Publish', 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.