mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 18:47:44 +00:00
Add drop target
This commit is contained in:
parent
987d9b20c0
commit
aaffcb13bd
8 changed files with 104 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import * as React from "react";
|
||||
import React from "react";
|
||||
import { useSelector } from "react-redux";
|
||||
import { useActionCreator } from "./hooks";
|
||||
import * as Actions from "./redux/actionCreators";
|
||||
|
|
@ -12,6 +12,7 @@ function UploadButton() {
|
|||
const uploadViewOpen = useSelector(Selectors.getHaveUploadFiles);
|
||||
const gotFiles = useActionCreator(Actions.gotFiles);
|
||||
const closeUploadFiles = useActionCreator(Actions.closeUploadFiles);
|
||||
|
||||
if (!SHOW_UPLOAD) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue