diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx
index f51b5bf..3f0857a 100644
--- a/frontend/src/pages/HomePage.tsx
+++ b/frontend/src/pages/HomePage.tsx
@@ -6,8 +6,10 @@ import Button from "../components/Input/Button";
import DynamicPageContent from "../components/Layout/DynamicPageContent";
import LoadingScreen from "../components/Layout/LoadingScreen";
import Footer from "../components/Layout/Footer";
+import { useAuth } from "../context/AuthContext";
const HomePage: React.FC = () => {
+ const { username } = useAuth();
const { streams, isLoading: isLoadingStreams } = useStreams();
const { categories, isLoading: isLoadingCategories } = useCategories();
const { vods, isLoading: isLoadingVods } = useVods();
@@ -19,6 +21,11 @@ const HomePage: React.FC = () => {
if (isLoadingStreams || isLoadingCategories || isLoadingVods) return Loading Content...;
+ const thumbnails = vods.map((vod) => ({
+ ...vod,
+ thumbnail: `/vods/${vod.username}/${vod.vod_id}.png`,
+ }));
+
return (
{/* Streams Section */}
@@ -55,7 +62,7 @@ const HomePage: React.FC = () => {
type="vod"
title="Recent VODs"
description="Watch the latest recorded streams!"
- items={vods}
+ items={thumbnails}
wrap={false}
onItemClick={handleVodClick}
extraClasses="bg-black/50"