Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix tslint issues

Krzysztof Bialoglowicza08ead84eaf2
diff --git a/saleor/static/dashboard-next/components/RowNumberSelect/RowNumberSelect.tsx b/saleor/static/dashboard-next/components/RowNumberSelect/RowNumberSelect.tsx
index a8ee6c1675..249191f24b 100644
--- a/saleor/static/dashboard-next/components/RowNumberSelect/RowNumberSelect.tsx
+++ b/saleor/static/dashboard-next/components/RowNumberSelect/RowNumberSelect.tsx
@@ -17,18 +17,17 @@ const styles = (theme: Theme) =>
fontSize: "14px"
},
select: {
- "&:after, &:before, &:hover": {
- border: "none !important"
- },
"& div": {
color: theme.palette.primary.main,
padding: "0 10px 0 5px"
},
"& svg": {
color: theme.palette.primary.main
+ },
+ "&:after, &:before, &:hover": {
+ border: "none !important"
}
- },
- ".MuiSelect-select": { padding: 0 }
+ }
});
interface RowNumberSelectProps extends WithStyles<typeof styles> {
diff --git a/saleor/static/dashboard-next/components/TablePagination/TablePagination.tsx b/saleor/static/dashboard-next/components/TablePagination/TablePagination.tsx
index 1fe787691d..3102a53ff7 100644
--- a/saleor/static/dashboard-next/components/TablePagination/TablePagination.tsx
+++ b/saleor/static/dashboard-next/components/TablePagination/TablePagination.tsx
@@ -51,8 +51,8 @@ const styles = (theme: Theme) =>
toolbar: {
height: 56,
minHeight: 56,
- paddingRight: 2,
- paddingLeft: 2
+ paddingLeft: 2,
+ paddingRight: 2
}
});
@@ -67,7 +67,7 @@ interface TablePaginationProps extends WithStyles<typeof styles> {
nextIconButtonProps?: Partial<IconButtonProps>;
onNextPage(event);
onPreviousPage(event);
- onRowNumChange: (event: React.ChangeEvent<any>) => void;
+ onRowNumChange(event);
}
const TablePagination = withStyles(styles, { name: "TablePagination" })(
diff --git a/saleor/static/dashboard-next/hooks/useRowChange.ts b/saleor/static/dashboard-next/hooks/useRowChange.ts
index 0a6ab33317..ae20ba75e2 100644
--- a/saleor/static/dashboard-next/hooks/useRowChange.ts
+++ b/saleor/static/dashboard-next/hooks/useRowChange.ts
@@ -10,8 +10,8 @@ function useRowChange() {
}
return {
- rowNumber,
- onRowChange
+ onRowChange,
+ rowNumber
};
}