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