From c71ffaf8d72d4ed598fc4c84526a1bd2c1666887 Mon Sep 17 00:00:00 2001 From: Chris-1010 <122332721@umail.ucc.ie> Date: Wed, 5 Mar 2025 13:52:24 +0000 Subject: [PATCH] REFACTOR: Clean code, don't show category name on `categoryPage`, fix path, remove console logs --- frontend/index.html | 4 +- frontend/src/components/Layout/ListItem.tsx | 9 +- frontend/src/components/Navigation/Navbar.tsx | 6 +- .../src/components/Stream/StreamDashboard.tsx | 69 +++--- frontend/src/hooks/useContent.ts | 158 +++++++------- frontend/src/pages/AllCategoriesPage.tsx | 157 +++++++------- frontend/src/pages/CategoryPage.tsx | 197 +++++++++--------- 7 files changed, 281 insertions(+), 319 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 1242bfb..521bbd1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,9 +2,7 @@
- - - +{username}
-{streamCategory}
+{!window.location.href.includes('/category/') ? streamCategory : ""}
{viewers} viewers