File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- export * from './project.component ' ;
1+ export * from './project.container ' ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import {
3+ TabComponent ,
4+ TabListComponent ,
5+ TabPanelComponent ,
6+ } from 'common/components' ;
7+ import { AppBar } from '@material-ui/core' ;
28
39export 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} ;
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { ProjectComponent } from './project.component' ;
3+
4+ export const ProjectContainer : React . FunctionComponent = ( ) => {
5+ return < ProjectComponent /> ;
6+ } ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { AppLayout } from 'layouts' ;
3- import { ProjectComponent } from 'pods/project' ;
3+ import { ProjectContainer } from 'pods/project' ;
44
55export const ProjectScene : React . FunctionComponent = ( ) => {
66 return (
77 < AppLayout >
8- < ProjectComponent />
8+ < ProjectContainer />
99 </ AppLayout >
1010 ) ;
1111} ;
You can’t perform that action at this time.
0 commit comments