Ts strict mode (#1288)

part of #879
This commit is contained in:
notmd
2023-02-07 19:56:59 +09:00
committed by GitHub
parent 5d10b28b20
commit b7d0c4331c
10 changed files with 51 additions and 24 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ export const DataTable = <T,>({
} else {
newValues = filterValues.map((oldValue) => (oldValue.id === value.id ? value : oldValue));
}
onFilterChange(newValues);
onFilterChange && onFilterChange(newValues);
};
return (
<>
+2 -2
View File
@@ -76,14 +76,14 @@ export const UserTable = memo(function UserTable() {
const toPreviousPage = () => {
setPagination({
cursor: data.prev,
cursor: data?.prev || "",
direction: "back",
});
};
const toNextPage = () => {
setPagination({
cursor: data.next,
cursor: data?.next || "",
direction: "forward",
});
};