fix warning

This commit is contained in:
Zamitto 2024-06-16 18:39:28 -03:00
parent 38e6f010d6
commit 54d137e3ae
3 changed files with 6 additions and 6 deletions

View File

@ -83,7 +83,7 @@ export function App() {
return () => {
listeners.forEach((unsubscribe) => unsubscribe());
};
}, []);
}, [clearUserAuth, updateUserAuth]);
const handleSearch = useCallback(
(query: string) => {

View File

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

View File

@ -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 {