From 9b845a3789649cf4c51d5c641740074347712305 Mon Sep 17 00:00:00 2001 From: Tom French Date: Thu, 9 Jul 2020 16:25:12 +0100 Subject: [PATCH] fix: add return type to changeSort function --- packages/react-app/src/components/Table/TableHead.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-app/src/components/Table/TableHead.tsx b/packages/react-app/src/components/Table/TableHead.tsx index 39247e9..71ae749 100644 --- a/packages/react-app/src/components/Table/TableHead.tsx +++ b/packages/react-app/src/components/Table/TableHead.tsx @@ -19,7 +19,7 @@ export const cellWidth = (width?: number): object | undefined => { function TableHeader(props: any): ReactElement { const { columns, order, orderBy, onSort } = props; - const changeSort = (property: string, orderAttr: boolean) => () => { + const changeSort = (property: string, orderAttr: boolean) => (): void => { onSort(property, orderAttr); };