UPDATE: Added category page as well as reset password page
This commit is contained in:
9
frontend/src/pages/CategoryPage.tsx
Normal file
9
frontend/src/pages/CategoryPage.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react'
|
||||
|
||||
const CategoryPage = () => {
|
||||
return (
|
||||
<div>CategoryPage</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default CategoryPage
|
||||
9
frontend/src/pages/ForgotPasswordPage.tsx
Normal file
9
frontend/src/pages/ForgotPasswordPage.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react'
|
||||
|
||||
const ForgotPasswordPage = () => {
|
||||
return (
|
||||
<div>ForgotPasswordPage</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default ForgotPasswordPage
|
||||
@@ -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