Updating based on changes to filedrop element.

This commit is contained in:
Paul Kinlan
2018-10-15 19:06:52 +00:00
committed by Jake Archibald
parent f4c82ced97
commit bd3d33296d
3 changed files with 121 additions and 125 deletions

View File

@@ -2,7 +2,7 @@ import { h, Component } from 'preact';
import { bind, linkRef, Fileish } from '../../lib/initial-util';
import * as style from './style.scss';
import * as FileDropElement from 'file-drop-element';
import { FileDropEvent } from 'file-drop-element';
import 'file-drop-element';
import SnackBarElement, { SnackOptions } from '../../lib/SnackBar';
import '../../lib/SnackBar';
@@ -54,7 +54,7 @@ export default class App extends Component<Props, State> {
}
@bind
private onFileDrop(event: FileDropElement.FileDropEvent) {
private onFileDrop(event: FileDropEvent) {
const { file } = event;
if (!file) return;
this.setState({ file });