web: disable multiple .torrent file selection in Add new torrent file selection dialog (#347)

This commit is contained in:
Alexey D. Filimonov
2024-02-03 10:46:42 +03:00
committed by GitHub
parent efb17ee48d
commit 25cf543b07

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)