feat: refactor

This commit is contained in:
Zamitto 2024-12-22 21:25:32 -03:00
parent cabddfb926
commit 4d0a75e61f
4 changed files with 1 additions and 10 deletions

View File

@ -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();

View File

@ -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 (
<div
className={styles.panel}

View File

@ -21,7 +21,6 @@ import { howLongToBeatEntriesTable } from "@renderer/dexie";
import { SidebarSection } from "../sidebar-section/sidebar-section";
import { buildGameAchievementPath } from "@renderer/helpers";
import { SPACING_UNIT } from "@renderer/theme.css";
import { useSubmit } from "react-router-dom";
import { useSubscription } from "@renderer/hooks/use-subscription";
const fakeAchievements: UserAchievement[] = [

View File

@ -5,7 +5,6 @@ import { useTranslation } from "react-i18next";
import * as styles from "./profile-content.css";
import { Avatar, Link } from "@renderer/components";
import { buildGameDetailsPath } from "@renderer/helpers";
export function FriendsBox() {
const { userProfile, userStats } = useContext(userProfileContext);