Skip to content

Commit e0b9afc

Browse files
author
Antonio Contreras LEMONCODE
committed
Fix function type
1 parent 771b873 commit e0b9afc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pods/employee/components/report.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Props {
1212
report: Report;
1313
className?: string;
1414
onCancel: () => void;
15-
onGenerateExcel: () => void;
15+
onGenerateExcel: (report: Report) => void;
1616
}
1717

1818
export const ReportComponent: React.FunctionComponent<Props> = ({

src/pods/employee/employee.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface Props {
1515
report: Report;
1616
onSave: (employee: Employee) => void;
1717
onCancel: () => void;
18-
onGenerateExcel: () => void;
18+
onGenerateExcel: (report: Report) => void;
1919
}
2020

2121
export const EmployeeComponent: React.FunctionComponent<Props> = ({

src/pods/employee/employee.container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const EmployeeContainer: React.FunctionComponent = () => {
4141
history.back();
4242
};
4343

44-
const handleGenerateExcel = () => {
44+
const handleGenerateExcel = (report: Report) => {
4545
// Pending to create real implementation
4646
console.log('Excel creado');
4747
};

0 commit comments

Comments
 (0)