fix: display pages when more than one
This commit is contained in:
@ -59,14 +59,16 @@ const DealsTable = () => {
|
|||||||
} as MRT_TableOptions<DealSchema>
|
} as MRT_TableOptions<DealSchema>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<Group justify={"flex-end"}>
|
{paginationInfo.totalPages > 1 && (
|
||||||
<Pagination
|
<Group justify={"flex-end"}>
|
||||||
withEdges
|
<Pagination
|
||||||
total={paginationInfo.totalPages}
|
withEdges
|
||||||
value={page}
|
total={paginationInfo.totalPages}
|
||||||
onChange={setPage}
|
value={page}
|
||||||
/>
|
onChange={setPage}
|
||||||
</Group>
|
/>
|
||||||
|
</Group>
|
||||||
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user