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 ; })}
-
+
); };