From 234803e313e7f3197ccab191b2689c23a186c771 Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Wed, 28 Feb 2024 08:31:48 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20re-styling=20project=20?= =?UTF-8?q?list=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/OrgSlug.tsx | 4 +- .../frontend/src/pages/org-slug/index.tsx | 40 +++++++++---------- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/packages/frontend/src/pages/OrgSlug.tsx b/packages/frontend/src/pages/OrgSlug.tsx index b2214e4e..834bb15d 100644 --- a/packages/frontend/src/pages/OrgSlug.tsx +++ b/packages/frontend/src/pages/OrgSlug.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { Outlet } from 'react-router-dom'; -import Sidebar from '../components/Sidebar'; -import { OctokitProvider } from '../context/OctokitContext'; +import { OctokitProvider } from 'context/OctokitContext'; +import { Sidebar } from 'components/shared/Sidebar'; const OrgSlug = () => { return ( diff --git a/packages/frontend/src/pages/org-slug/index.tsx b/packages/frontend/src/pages/org-slug/index.tsx index 406c7639..4b150dea 100644 --- a/packages/frontend/src/pages/org-slug/index.tsx +++ b/packages/frontend/src/pages/org-slug/index.tsx @@ -3,11 +3,11 @@ import { Link, useParams } from 'react-router-dom'; import { Project } from 'gql-client'; import { Button } from 'components/shared/Button'; -import { Typography, Chip } from '@material-tailwind/react'; - -import { useGQLClient } from '../../context/GQLClientContext'; import { PlusIcon } from 'components/shared/CustomIcon'; import { ProjectCard } from 'components/projects/ProjectCard'; +import { Heading } from 'components/shared/Heading'; +import { Badge } from 'components/shared/Badge'; +import { useGQLClient } from 'context/GQLClientContext'; const Projects = () => { const client = useGQLClient(); @@ -26,33 +26,31 @@ const Projects = () => { }, [orgSlug]); return ( -
-
+
+ {/* Header */} +
-
- +
+ Projects - - + + + {projects.length} +
-
- - - -
+ + +
-
- {projects.length !== 0 && + {/* List of projects */} +
+ {projects.length > 0 && projects.map((project, key) => { return ; })}
-
+
); };