UPDATE: Added category page as well as reset password page
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user