Fix types

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Jonathan
2025-06-17 17:37:39 +02:00
committed by Bryan Frimin
parent 493d29cfd5
commit eaf54f9836
6 changed files with 11 additions and 19 deletions

View File

@@ -42,9 +42,9 @@ export function SortableTable({
...props
}: ComponentProps<typeof Table> & {
refetch: (o: { order: Order }) => void;
hasNext: boolean;
loadNext: (...args: any[]) => void;
isLoadingNext: boolean;
hasNext?: boolean;
loadNext?: (...args: any[]) => void;
isLoadingNext?: boolean;
}) {
const { __ } = useTranslate();
const [order, setOrder] = useState(defaultOrder);
@@ -58,7 +58,7 @@ export function SortableTable({
<SortableContext value={{ order, onOrderChange }}>
<div className="space-y-4">
<Table {...props} />
{hasNext && (
{hasNext && loadNext && (
<Button
variant="tertiary"
onClick={() => loadNext()}