mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-24 05:54:55 +03:00
fix warning
This commit is contained in:
parent
38e6f010d6
commit
54d137e3ae
@ -83,7 +83,7 @@ export function App() {
|
|||||||
return () => {
|
return () => {
|
||||||
listeners.forEach((unsubscribe) => unsubscribe());
|
listeners.forEach((unsubscribe) => unsubscribe());
|
||||||
};
|
};
|
||||||
}, []);
|
}, [clearUserAuth, updateUserAuth]);
|
||||||
|
|
||||||
const handleSearch = useCallback(
|
const handleSearch = useCallback(
|
||||||
(query: string) => {
|
(query: string) => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ProfileGame, UserProfile } from "@types";
|
import { UserGame, UserProfile } from "@types";
|
||||||
import cn from "classnames";
|
import cn from "classnames";
|
||||||
import * as styles from "./user.css";
|
import * as styles from "./user.css";
|
||||||
import { SPACING_UNIT, vars } from "@renderer/theme.css";
|
import { SPACING_UNIT, vars } from "@renderer/theme.css";
|
||||||
@ -49,7 +49,7 @@ export const UserContent = ({ userProfile }: ProfileContentProps) => {
|
|||||||
return t("amount_hours", { amount: numberFormatter.format(hours) });
|
return t("amount_hours", { amount: numberFormatter.format(hours) });
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleGameClick = (game: ProfileGame) => {
|
const handleGameClick = (game: UserGame) => {
|
||||||
navigate(buildGameDetailsPath(game));
|
navigate(buildGameDetailsPath(game));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ export interface CatalogueEntry {
|
|||||||
repacks: GameRepack[];
|
repacks: GameRepack[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProfileGame {
|
export interface UserGame {
|
||||||
objectID: string;
|
objectID: string;
|
||||||
shop: GameShop;
|
shop: GameShop;
|
||||||
title: string;
|
title: string;
|
||||||
@ -254,8 +254,8 @@ export interface UserProfile {
|
|||||||
id: string;
|
id: string;
|
||||||
displayName: string;
|
displayName: string;
|
||||||
profileImageUrl: string | null;
|
profileImageUrl: string | null;
|
||||||
libraryGames: ProfileGame[];
|
libraryGames: UserGame[];
|
||||||
recentGames: ProfileGame[];
|
recentGames: UserGame[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DownloadSource {
|
export interface DownloadSource {
|
||||||
|
Loading…
Reference in New Issue
Block a user