mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Prevent dropping files outside of dropzones
This commit is contained in:
1 parent
b6113a1007
commit
05b697fd24
3 files changed
+36
-3
No files matched your search
@@ -7,6 +7,7 @@ import { DraggingContext } from "../model/is_dragging";
|
||||
export default function UploadButton(props: React.ComponentProps<typeof Button>) {
|
||||
const isDroppingFile = useContext(DraggingContext);
|
||||
return <Button
|
||||
className="dropzone"
|
||||
{...props}
|
||||
style={{
|
||||
...props.style,
|
||||
|
||||
Reference in new issue
Block a user