mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 13:34:54 +03:00
feat: refactor
This commit is contained in:
parent
cabddfb926
commit
4d0a75e61f
@ -26,8 +26,6 @@ import {
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { UserFriendModal } from "./pages/shared-modals/user-friend-modal";
|
import { UserFriendModal } from "./pages/shared-modals/user-friend-modal";
|
||||||
import { downloadSourcesWorker } from "./workers";
|
import { downloadSourcesWorker } from "./workers";
|
||||||
import { repacksContext } from "./context";
|
|
||||||
import { logger } from "./logger";
|
|
||||||
import { useSubscription } from "./hooks/use-subscription";
|
import { useSubscription } from "./hooks/use-subscription";
|
||||||
import { HydraCloudModal } from "./pages/shared-modals/hydra-cloud/hydra-cloud-modal";
|
import { HydraCloudModal } from "./pages/shared-modals/hydra-cloud/hydra-cloud-modal";
|
||||||
|
|
||||||
@ -60,8 +58,7 @@ export function App() {
|
|||||||
clearUserDetails,
|
clearUserDetails,
|
||||||
} = useUserDetails();
|
} = useUserDetails();
|
||||||
|
|
||||||
const { hideHydraCloudModal, showHydraCloudModal, isHydraCloudModalVisible } =
|
const { hideHydraCloudModal, isHydraCloudModalVisible } = useSubscription();
|
||||||
useSubscription();
|
|
||||||
|
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import { useContext } from "react";
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { gameDetailsContext } from "@renderer/context";
|
|
||||||
import * as styles from "./achievement-panel.css";
|
import * as styles from "./achievement-panel.css";
|
||||||
|
|
||||||
import HydraIcon from "@renderer/assets/icons/hydra.svg?react";
|
import HydraIcon from "@renderer/assets/icons/hydra.svg?react";
|
||||||
@ -16,8 +14,6 @@ export function ComparedAchievementPanel({
|
|||||||
}: ComparedAchievementPanelProps) {
|
}: ComparedAchievementPanelProps) {
|
||||||
const { t } = useTranslation("achievement");
|
const { t } = useTranslation("achievement");
|
||||||
|
|
||||||
const {} = useContext(gameDetailsContext);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={styles.panel}
|
className={styles.panel}
|
||||||
|
@ -21,7 +21,6 @@ import { howLongToBeatEntriesTable } from "@renderer/dexie";
|
|||||||
import { SidebarSection } from "../sidebar-section/sidebar-section";
|
import { SidebarSection } from "../sidebar-section/sidebar-section";
|
||||||
import { buildGameAchievementPath } from "@renderer/helpers";
|
import { buildGameAchievementPath } from "@renderer/helpers";
|
||||||
import { SPACING_UNIT } from "@renderer/theme.css";
|
import { SPACING_UNIT } from "@renderer/theme.css";
|
||||||
import { useSubmit } from "react-router-dom";
|
|
||||||
import { useSubscription } from "@renderer/hooks/use-subscription";
|
import { useSubscription } from "@renderer/hooks/use-subscription";
|
||||||
|
|
||||||
const fakeAchievements: UserAchievement[] = [
|
const fakeAchievements: UserAchievement[] = [
|
||||||
|
@ -5,7 +5,6 @@ import { useTranslation } from "react-i18next";
|
|||||||
|
|
||||||
import * as styles from "./profile-content.css";
|
import * as styles from "./profile-content.css";
|
||||||
import { Avatar, Link } from "@renderer/components";
|
import { Avatar, Link } from "@renderer/components";
|
||||||
import { buildGameDetailsPath } from "@renderer/helpers";
|
|
||||||
|
|
||||||
export function FriendsBox() {
|
export function FriendsBox() {
|
||||||
const { userProfile, userStats } = useContext(userProfileContext);
|
const { userProfile, userStats } = useContext(userProfileContext);
|
||||||
|
Loading…
Reference in New Issue
Block a user