#199 - Removes the file-drop custom element

+ Removes the custom element from the project
+ Replaces it with the externally maintined custom element
This commit is contained in:
Paul Kinlan
2018-10-13 20:06:58 +00:00
committed by Jake Archibald
parent 76188df0d3
commit f4c82ced97
6 changed files with 56 additions and 225 deletions

View File

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