From 1fd930b0a33a1feb02937211300759daf2f9605f Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Mon, 23 Dec 2024 00:06:23 +0000 Subject: [PATCH] fix: fixing download sources migration --- .../src/pages/catalogue/catalogue.tsx | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/renderer/src/pages/catalogue/catalogue.tsx b/src/renderer/src/pages/catalogue/catalogue.tsx index bb44801b..d3372eaf 100644 --- a/src/renderer/src/pages/catalogue/catalogue.tsx +++ b/src/renderer/src/pages/catalogue/catalogue.tsx @@ -2,11 +2,9 @@ import { Badge } from "@renderer/components"; import type { DownloadSource } from "@types"; -import cn from "classnames"; - import { useAppDispatch, useAppSelector, useRepacks } from "@renderer/hooks"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; -import { SearchIcon, XIcon } from "@primer/octicons-react"; +import { XIcon } from "@primer/octicons-react"; import "./catalogue.scss"; @@ -34,8 +32,6 @@ export default function Catalogue() { const abortControllerRef = useRef(null); - const [focused, setFocused] = useState(false); - const [steamUserTags, setSteamUserTags] = useState({}); const [searchParams] = useSearchParams(); @@ -105,18 +101,6 @@ export default function Catalogue() { }); }, [getRepacksForObjectId]); - const focusInput = useCallback(() => { - setFocused(true); - inputRef.current?.focus(); - }, []); - - const onSearch = useCallback( - (value: string) => { - dispatch(setSearch({ title: value })); - }, - [dispatch] - ); - useEffect(() => { axios .get( @@ -133,12 +117,6 @@ export default function Catalogue() { }); }, [i18n.language]); - useEffect(() => { - if (search) { - focusInput(); - } - }, [search, focusInput]); - return (