mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 09:17:20 +00:00
#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:
committed by
Jake Archibald
parent
76188df0d3
commit
f4c82ced97
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user