Commit ee970912 authored by Joseph Suárez's avatar Joseph Suárez Committed by Carlos Azuaje
Browse files

fix(components/File.js): Fix imports (#14)

parent bf681a3c
import React, { PureComponent } from 'react';
import { Line } from 'rc-progress';
import { readFileChunk, onReadSuccess, onReadError } from '../actions';
import { readFileChunk, onReadError } from '../actions/index.js';
import io from '../helpers/io';
export default class File extends PureComponent {
......@@ -20,7 +20,7 @@ export default class File extends PureComponent {
this.onReadError = () => onReadError(this, 'Upload rejected by server');
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.uploading && !this.state.done && !this.state.invalid) {
io.emit('start-transfer', this.props.file.name, this.props.file.size, ((filename) => {
if (!filename) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment