Skip to content

Commit 9c383fa

Browse files
author
Antonio Contreras LEMONCODE
committed
Remove checkbox common component and use checkbox material ui
1 parent 0a78384 commit 9c383fa

6 files changed

Lines changed: 4 additions & 67 deletions

File tree

src/common/components/form/checkbox/checkbox.component.tsx

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/common/components/form/checkbox/checkbox.styles.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/common/components/form/checkbox/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * from './form.component';
22
export * from './text-field.component';
3-
export * from './checkbox';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {
33
RowRendererProps,
44
RowComponent,
55
CellComponent,
6-
CheckboxComponent,
76
} from 'common/components';
7+
import Checkbox from '@material-ui/core/Checkbox';
88
import IconButton from '@material-ui/core/IconButton';
99
import EditIcon from '@material-ui/icons/Edit';
1010
import DeleteIcon from '@material-ui/icons/Delete';
@@ -20,7 +20,7 @@ export const EmployeeRowComponent: React.FunctionComponent<Props> = ({
2020
return (
2121
<RowComponent>
2222
<CellComponent>
23-
<CheckboxComponent checked={row.active} disabled />
23+
<Checkbox checked={row.active} disabled />
2424
</CellComponent>
2525
<CellComponent>{row.id}</CellComponent>
2626
<CellComponent>{row.name}</CellComponent>

src/pods/employee-list/employee-list.mappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ const mapEmployeeFromApiToVm = (
99
});
1010

1111
export const mapEmployeeListFromApiToVm = (
12-
employees: apiModel.Employee[]
12+
employeeList: apiModel.Employee[]
1313
): viewModel.Employee[] =>
14-
mapToCollection(employees, e => mapEmployeeFromApiToVm(e));
14+
mapToCollection(employeeList, e => mapEmployeeFromApiToVm(e));

0 commit comments

Comments
 (0)