This commit is contained in:
nikk gitanes
2024-02-03 11:20:35 +03:00

View File

@@ -39,7 +39,11 @@ export default function LeftSideComponent({
}
const [isTorrentSourceActive, setIsTorrentSourceActive] = useState(false)
const { getRootProps, getInputProps, isDragActive } = useDropzone({ onDrop: handleCapture, accept: '.torrent' })
const { getRootProps, getInputProps, isDragActive } = useDropzone({
onDrop: handleCapture,
accept: '.torrent',
multiple: false,
})
const handleTorrentSourceChange = ({ target: { value } }) => setTorrentSource(value)