mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 01:37:26 +00:00
Updating based on changes to filedrop element.
This commit is contained in:
committed by
Jake Archibald
parent
f4c82ced97
commit
bd3d33296d
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user