diff --git a/components/Preview/components/Torrents/index.tsx b/components/Preview/components/Torrents/index.tsx index 0e95e9f..60116b8 100644 --- a/components/Preview/components/Torrents/index.tsx +++ b/components/Preview/components/Torrents/index.tsx @@ -79,7 +79,7 @@ const showTorrentsModal = create(({ title: initialTitle, year, imdbID, backdrop, return ( -
+ {} const Input = React.forwardRef(({ className, type, ...props }, ref) => { - const inputRef = useRef(); - - const handleRef = (element: HTMLInputElement) => { - if (!element) return; - - inputRef.current = element; - - if (!ref) return; - - typeof ref === 'function' ? ref(element) : (ref.current = element); - }; - - useLayoutEffect(() => { - if (!inputRef.current || props.autoFocus) return; - - setTimeout(() => inputRef.current?.blur()); - }, [props.autoFocus]); - return ( (({ className, type, 'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className )} - ref={handleRef} + ref={ref} {...props} /> ); diff --git a/public/favicon-96x96.png b/public/favicon-96x96.png index e69de29..bf11bc6 100644 Binary files a/public/favicon-96x96.png and b/public/favicon-96x96.png differ diff --git a/public/favicon.ico b/public/favicon.ico index 5e8bbba..49e6e5d 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/favicon.svg b/public/favicon.svg index b81b60c..501f054 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1,5 +1,5 @@ - + \ No newline at end of file