From 5cd6b129519d68338c1ed2780ef656e03d5bf082 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Wed, 7 Sep 2022 10:17:39 +0300 Subject: [PATCH] fix: project grid layout --- .../ProjectsPage/ProjectCard/ProjectCard.tsx | 17 +++++++++-------- .../pages/ProjectsPage/ProjectsPage.tsx | 4 ++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/features/Tournaments/pages/ProjectsPage/ProjectCard/ProjectCard.tsx b/src/features/Tournaments/pages/ProjectsPage/ProjectCard/ProjectCard.tsx index dc8b7d4..c9e65ec 100644 --- a/src/features/Tournaments/pages/ProjectsPage/ProjectCard/ProjectCard.tsx +++ b/src/features/Tournaments/pages/ProjectsPage/ProjectCard/ProjectCard.tsx @@ -29,21 +29,22 @@ export default function ProjectCard({ project }: Props) { } return ( - +
- +

{project.title}

{project.category.icon} {project.category.title}

-

{project.description}

-
-

👾 Makers

- 6 makers - +

{project.description}

+
+ {/*

👾 Makers

*/} +

+ 6 makers +

- + ) } diff --git a/src/features/Tournaments/pages/ProjectsPage/ProjectsPage.tsx b/src/features/Tournaments/pages/ProjectsPage/ProjectsPage.tsx index 03dbd5e..0e7b6b1 100644 --- a/src/features/Tournaments/pages/ProjectsPage/ProjectsPage.tsx +++ b/src/features/Tournaments/pages/ProjectsPage/ProjectsPage.tsx @@ -39,7 +39,7 @@ export default function ProjectsPage({ data: { id } }: Props) { return (
-

Projects {projectsCount && `(${projectsCount})`}

+

Projects {projectsCount && `(${projectsCount})`}

@@ -51,7 +51,7 @@ export default function ProjectsPage({ data: { id } }: Props) { onChange={e => changeSearchFilter(e.target.value)} />
-
+
{query.loading ? Array(9).fill(0).map((_, idx) => ) :