mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Fix spelling
This commit is contained in:
parent
a2eb557599
commit
067623811c
1 changed files with 5 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|||
windowId: WindowId;
|
||||
}
|
||||
|
||||
function supress(e: React.DragEvent<HTMLDivElement>) {
|
||||
function suppress(e: React.DragEvent<HTMLDivElement>) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
e.dataTransfer.dropEffect = "link";
|
||||
|
|
@ -32,7 +32,7 @@ const DropTarget = (props: Props) => {
|
|||
|
||||
const onDrop = useCallback(
|
||||
(e: React.DragEvent<HTMLDivElement>) => {
|
||||
supress(e);
|
||||
suppress(e);
|
||||
droppedFiles(e, windowId);
|
||||
// TODO: We could probably move this coordinate logic into the playlist.
|
||||
// I think that's the only place it gets used.
|
||||
|
|
@ -49,9 +49,9 @@ const DropTarget = (props: Props) => {
|
|||
return (
|
||||
<div
|
||||
{...passThroughProps}
|
||||
onDragStart={supress}
|
||||
onDragEnter={supress}
|
||||
onDragOver={supress}
|
||||
onDragStart={suppress}
|
||||
onDragEnter={suppress}
|
||||
onDragOver={suppress}
|
||||
onDrop={onDrop}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue