feat(projects, pipeline): project detail page.

This commit is contained in:
Ivan Li
2021-05-05 11:21:48 +08:00
parent ebc3d3a3aa
commit 93482bec3f
11 changed files with 248 additions and 104 deletions

View File

@@ -1,7 +1,6 @@
import { gql, useQuery } from '@apollo/client';
import { Link, useRouter } from '@curi/react-dom';
import { Box, List, ListItem } from '@material-ui/core';
import { makeStyles, Theme, createStyles } from '@material-ui/core';
import { find, propEq } from 'ramda';
import React, { useState, FC, useEffect } from 'react';
import { Project } from '../generated/graphql';
@@ -22,12 +21,6 @@ const PROJECTS = gql`
}
`;
const useStyles = makeStyles((theme: Theme) =>
createStyles({
})
);
export function ProjectPanel() {
return (
<section>
@@ -68,7 +61,7 @@ const ProjectList: FC<{}> = () => {
const items = projects?.map((item) => (
<Link
name="edit-project"
name="project-detail"
params={{ projectId: item.id }}
key={item.id}
onNav={() => setCurrentProject(item)}