Skip to content

Commit 0e2a84a

Browse files
author
Antonio Contreras LEMONCODE
committed
Create project container and fix project scene
1 parent a45001e commit 0e2a84a

4 files changed

Lines changed: 36 additions & 4 deletions

File tree

src/pods/project/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './project.component';
1+
export * from './project.container';
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
import React from 'react';
2+
import {
3+
TabComponent,
4+
TabListComponent,
5+
TabPanelComponent,
6+
} from 'common/components';
7+
import { AppBar } from '@material-ui/core';
28

39
export const ProjectComponent: React.FunctionComponent = () => {
4-
return <h1>Hello Edit project component</h1>;
10+
const [tab, setTab] = React.useState(0);
11+
return (
12+
<>
13+
<AppBar position="static">
14+
<TabListComponent value={tab} onChange={setTab}>
15+
<TabComponent label="Datos" />
16+
<TabComponent label="Empleados" />
17+
<TabComponent label="Informes" />
18+
</TabListComponent>
19+
</AppBar>
20+
<TabPanelComponent value={tab} index={0}>
21+
Hello Data component
22+
</TabPanelComponent>
23+
<TabPanelComponent value={tab} index={1}>
24+
Hello Employee component
25+
</TabPanelComponent>
26+
<TabPanelComponent value={tab} index={2}>
27+
Hello Report component
28+
</TabPanelComponent>
29+
</>
30+
);
531
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import React from 'react';
2+
import { ProjectComponent } from './project.component';
3+
4+
export const ProjectContainer: React.FunctionComponent = () => {
5+
return <ProjectComponent />;
6+
};

src/scenes/project.scene.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React from 'react';
22
import { AppLayout } from 'layouts';
3-
import { ProjectComponent } from 'pods/project';
3+
import { ProjectContainer } from 'pods/project';
44

55
export const ProjectScene: React.FunctionComponent = () => {
66
return (
77
<AppLayout>
8-
<ProjectComponent />
8+
<ProjectContainer />
99
</AppLayout>
1010
);
1111
};

0 commit comments

Comments
 (0)