UPDATE: Added category page as well as reset password page

This commit is contained in:
Oscar
2025-02-05 14:55:05 +00:00
parent 0a92f00c69
commit 84faf0f33d
4 changed files with 28 additions and 1 deletions

View File

@@ -17,6 +17,11 @@ const HomePage: React.FC<HomePageProps> = ({ variant = "default" }) => {
navigate(`/${streamerName}`);
};
const handleCategoryClick = (categoryID: number, categoryName: string) => {
console.log(`Navigating to category ${categoryID}`);
navigate(`category/${categoryName}`);
};
return (
<div
id="home-page"
@@ -54,7 +59,7 @@ const HomePage: React.FC<HomePageProps> = ({ variant = "default" }) => {
: "Categories that have been 'popping off' lately"
}
items={featuredCategories}
onClick={() => {}} //TODO
onClick={handleCategoryClick}
/>
</div>
);