Implemented kanban board page with lists of issues
This commit is contained in:
24
client/src/components/Project/index.jsx
Normal file
24
client/src/components/Project/index.jsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
|
||||
import useApi from 'shared/hooks/api';
|
||||
import { PageLoader, PageError } from 'shared/components';
|
||||
import Sidebar from './Sidebar';
|
||||
import Board from './Board';
|
||||
import { ProjectPage } from './Styles';
|
||||
|
||||
const Project = () => {
|
||||
const [{ data, error, isLoading }] = useApi.get('/project');
|
||||
|
||||
if (isLoading) return <PageLoader />;
|
||||
if (error) return <PageError />;
|
||||
|
||||
const { project } = data;
|
||||
return (
|
||||
<ProjectPage>
|
||||
<Sidebar projectName={project.name} />
|
||||
<Board project={project} />
|
||||
</ProjectPage>
|
||||
);
|
||||
};
|
||||
|
||||
export default Project;
|
||||
Reference in New Issue
Block a user