diff --git a/src/features/Projects/Components/ProjectCardMini/ProjectCardMini.tsx b/src/features/Projects/Components/ProjectCardMini/ProjectCardMini.tsx
index 447f34c..619c65e 100644
--- a/src/features/Projects/Components/ProjectCardMini/ProjectCardMini.tsx
+++ b/src/features/Projects/Components/ProjectCardMini/ProjectCardMini.tsx
@@ -37,9 +37,9 @@ export default function ProjectCardMini({ project, onClick }: Props) {
{/* {numberFormatter(project.votes_count)} */}
{/* */}
-
{Array(5).fill(0).map((_, idx) =>
@@ -20,8 +31,13 @@ export default function Categories() {
return (
- {data?.allCategories.map(category =>
- navigate(`/category/${category.id}`)}>{category.title}
+ {data?.allCategories.map((category, idx) =>
+
)}
)
diff --git a/src/features/Projects/pages/ExplorePage/Categories/allCategories.graphql b/src/features/Projects/pages/ExplorePage/Categories/allCategories.graphql
index b4f38e8..718682c 100644
--- a/src/features/Projects/pages/ExplorePage/Categories/allCategories.graphql
+++ b/src/features/Projects/pages/ExplorePage/Categories/allCategories.graphql
@@ -2,5 +2,6 @@ query AllCategories {
allCategories {
id
title
+ icon
}
}
diff --git a/src/features/Projects/pages/ExplorePage/ExplorePage.tsx b/src/features/Projects/pages/ExplorePage/ExplorePage.tsx
index 6652a34..fab2765 100644
--- a/src/features/Projects/pages/ExplorePage/ExplorePage.tsx
+++ b/src/features/Projects/pages/ExplorePage/ExplorePage.tsx
@@ -1,6 +1,7 @@
import Header from "./Header/Header";
import ProjectsSection from "./ProjectsSection/ProjectsSection";
import { Helmet } from "react-helmet";
+import Categories from "./Categories/Categories";
export default function ExplorePage() {
@@ -14,9 +15,9 @@ export default function ExplorePage() {
- {/*
-
-
*/}
+
+
+
diff --git a/src/graphql/index.tsx b/src/graphql/index.tsx
index 0bb9984..0c5282b 100644
--- a/src/graphql/index.tsx
+++ b/src/graphql/index.tsx
@@ -421,7 +421,7 @@ export type CategoryPageQuery = { __typename?: 'Query', projectsByCategory: Arra
export type AllCategoriesQueryVariables = Exact<{ [key: string]: never; }>;
-export type AllCategoriesQuery = { __typename?: 'Query', allCategories: Array<{ __typename?: 'Category', id: number, title: string }> };
+export type AllCategoriesQuery = { __typename?: 'Query', allCategories: Array<{ __typename?: 'Category', id: number, title: string, icon: string | null }> };
export type ExploreProjectsQueryVariables = Exact<{ [key: string]: never; }>;
@@ -1107,6 +1107,7 @@ export const AllCategoriesDocument = gql`
allCategories {
id
title
+ icon
}
}
`;