From 4d0a75e61f5986da563457bd27e94eeb2f0c5c71 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Sun, 22 Dec 2024 21:25:32 -0300 Subject: [PATCH] feat: refactor --- src/renderer/src/app.tsx | 5 +---- .../src/pages/achievements/compared-achievement-panel.tsx | 4 ---- src/renderer/src/pages/game-details/sidebar/sidebar.tsx | 1 - .../src/pages/profile/profile-content/friends-box.tsx | 1 - 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/renderer/src/app.tsx b/src/renderer/src/app.tsx index a8d0ea06..3a489810 100644 --- a/src/renderer/src/app.tsx +++ b/src/renderer/src/app.tsx @@ -26,8 +26,6 @@ import { import { useTranslation } from "react-i18next"; import { UserFriendModal } from "./pages/shared-modals/user-friend-modal"; import { downloadSourcesWorker } from "./workers"; -import { repacksContext } from "./context"; -import { logger } from "./logger"; import { useSubscription } from "./hooks/use-subscription"; import { HydraCloudModal } from "./pages/shared-modals/hydra-cloud/hydra-cloud-modal"; @@ -60,8 +58,7 @@ export function App() { clearUserDetails, } = useUserDetails(); - const { hideHydraCloudModal, showHydraCloudModal, isHydraCloudModalVisible } = - useSubscription(); + const { hideHydraCloudModal, isHydraCloudModalVisible } = useSubscription(); const dispatch = useAppDispatch(); diff --git a/src/renderer/src/pages/achievements/compared-achievement-panel.tsx b/src/renderer/src/pages/achievements/compared-achievement-panel.tsx index 3ac76d8d..f331b5c8 100644 --- a/src/renderer/src/pages/achievements/compared-achievement-panel.tsx +++ b/src/renderer/src/pages/achievements/compared-achievement-panel.tsx @@ -1,6 +1,4 @@ -import { useContext } from "react"; import { useTranslation } from "react-i18next"; -import { gameDetailsContext } from "@renderer/context"; import * as styles from "./achievement-panel.css"; import HydraIcon from "@renderer/assets/icons/hydra.svg?react"; @@ -16,8 +14,6 @@ export function ComparedAchievementPanel({ }: ComparedAchievementPanelProps) { const { t } = useTranslation("achievement"); - const {} = useContext(gameDetailsContext); - return (