pull/1877/head
LASER-Yi 2 years ago
parent f2eb8f1342
commit 101bca90bf

@ -58,6 +58,7 @@ export const DropOverlay: FunctionComponent<DropOverlayProps> = ({
}) => {
const {
getRootProps,
getInputProps,
isDragActive,
isDragAccept: accepted,
isDragReject: rejected,
@ -99,6 +100,8 @@ export const DropOverlay: FunctionComponent<DropOverlayProps> = ({
return (
<Box sx={{ position: "relative" }} {...getRootProps()}>
{/* Fix for some browsers. Some browsers need a input element to trigger the file browser panel */}
<input {...getInputProps()} hidden />
{visible && (
<Box className={classes.container} style={{ zIndex }}>
<Stack

@ -100,12 +100,6 @@ const SeriesEpisodesView: FunctionComponent = () => {
onDrop,
});
// const onReject = useCallback<Sure<FileProps["onReject"]>>((rejections) => {
// showNotification(
// notification.warn("Cannot Upload Files", "Some files are invalid")
// );
// }, []);
useDocumentTitle(`${series?.title ?? "Unknown Series"} - Bazarr (Series)`);
if (isNaN(id) || (isFetched && !series)) {

Loading…
Cancel
Save