Skip to content

Commit

Permalink
fix: add return type to changeSort function
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jul 9, 2020
1 parent 5558b48 commit 9b845a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-app/src/components/Table/TableHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit 9b845a3

Please sign in to comment.