Skip to content

Commit 0a78384

Browse files
author
Antonio Contreras LEMONCODE
committed
Use ckecked component
1 parent 56dba2c commit 0a78384

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

src/pods/employee-list/api/employee-list.mock-data.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,55 +6,55 @@ export const mockEmployeeList: Employee[] = [
66
active: true,
77
name: 'Daniel Perez',
88
email: 'daniel.perez@empresa.com',
9-
lastDateIncurred: '2020-02-02T00:00:00',
9+
lastDateIncurred: '02/02/2020',
1010
},
1111
{
1212
id: '2',
1313
active: true,
1414
name: 'Jose Gomez',
1515
email: 'jose.gomez@empresa.com',
16-
lastDateIncurred: '2020-02-05T00:00:00',
16+
lastDateIncurred: '05/02/2020',
1717
},
1818
{
1919
id: '3',
2020
active: false,
2121
name: 'Manuel Ruiz',
2222
email: 'manuel.ruiz@empresa.com',
23-
lastDateIncurred: '2020-02-06T00:00:00',
23+
lastDateIncurred: '06/02/2020',
2424
},
2525
{
2626
id: '4',
2727
active: true,
2828
name: 'Ramón Gomez',
2929
email: 'ramon.gomez@empresa.com',
30-
lastDateIncurred: '2020-05-02T00:00:00',
30+
lastDateIncurred: '02/05/2020',
3131
},
3232
{
3333
id: '5',
3434
active: false,
3535
name: 'María Lopez',
3636
email: 'maria.lopez@empresa.com',
37-
lastDateIncurred: '2020-08-05T00:00:00',
37+
lastDateIncurred: '05/08/2020',
3838
},
3939
{
4040
id: '6',
4141
active: true,
4242
name: 'Manuel Ortiz',
4343
email: 'manuel.ortiz@empresa.com',
44-
lastDateIncurred: '2020-06-06T00:00:00',
44+
lastDateIncurred: '06/06/2020',
4545
},
4646
{
4747
id: '7',
4848
active: false,
4949
name: 'David Martos',
5050
email: 'david.martos@empresa.com',
51-
lastDateIncurred: '2020-08-14T00:00:00',
51+
lastDateIncurred: '14/08/2020',
5252
},
5353
{
5454
id: '8',
5555
active: true,
5656
name: 'Luz Roca',
5757
email: 'luz.roca@empresa.com',
58-
lastDateIncurred: '2020-06-20T00:00:00',
58+
lastDateIncurred: '20/06/2020',
5959
},
6060
];

src/pods/employee-list/components/employee-row.component.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
RowRendererProps,
44
RowComponent,
55
CellComponent,
6+
CheckboxComponent,
67
} from 'common/components';
78
import IconButton from '@material-ui/core/IconButton';
89
import EditIcon from '@material-ui/icons/Edit';
@@ -18,7 +19,9 @@ export const EmployeeRowComponent: React.FunctionComponent<Props> = ({
1819
}) => {
1920
return (
2021
<RowComponent>
21-
<CellComponent>{row.active}</CellComponent>
22+
<CellComponent>
23+
<CheckboxComponent checked={row.active} disabled />
24+
</CellComponent>
2225
<CellComponent>{row.id}</CellComponent>
2326
<CellComponent>{row.name}</CellComponent>
2427
<CellComponent>{row.email}</CellComponent>

0 commit comments

Comments
 (0)