From ce903edb37d9c11ff1e983fbf1015cd95af31140 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 24 Jun 2025 23:43:47 -0700 Subject: frontend: custom pfps for all games --- site/src/components/NewsFeed.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'site/src/components') diff --git a/site/src/components/NewsFeed.tsx b/site/src/components/NewsFeed.tsx index d8d2db0..881beaa 100644 --- a/site/src/components/NewsFeed.tsx +++ b/site/src/components/NewsFeed.tsx @@ -1,5 +1,5 @@ import { useState, useEffect } from "react"; -import { getGameTitle } from "../utils.ts"; +import { getGameTitle, getShortenedGameName } from "../utils.ts"; import { useSearchParams } from "react-router-dom"; export interface NewsData { @@ -83,11 +83,15 @@ export const NewsFeed: React.FC = ({ newsItems }) => {
-
- {news.identifier.charAt(0)} -
+ + {getGameTitle(news.identifier) +
- {getGameTitle(news.identifier)} + {getGameTitle(news.identifier)} {date} {news.type && {news.type}}
-- cgit v1.2.3