diff --git a/src/renderer/src/pages/profile/profile-content/friends-box.tsx b/src/renderer/src/pages/profile/profile-content/friends-box.tsx index 51ee25d2..6cc40b23 100644 --- a/src/renderer/src/pages/profile/profile-content/friends-box.tsx +++ b/src/renderer/src/pages/profile/profile-content/friends-box.tsx @@ -2,7 +2,7 @@ import { userProfileContext } from "@renderer/context"; import { useFormat } from "@renderer/hooks"; import { useContext } from "react"; import { useTranslation } from "react-i18next"; - +import SteamLogo from "@renderer/assets/steam-logo.svg?react"; import * as styles from "./profile-content.css"; import { Avatar, Link } from "@renderer/components"; @@ -13,6 +13,21 @@ export function FriendsBox() { const { numberFormatter } = useFormat(); + const getGameImage = (game: { iconUrl: string | null; title: string }) => { + if (game.iconUrl) { + return ( + {game.title} + ); + } + + return ; + }; + if (!userProfile?.friends.length) return null; return ( @@ -27,7 +42,14 @@ export function FriendsBox() {