Usenet styling and fixes

This commit is contained in:
ajnart
2023-01-05 22:42:56 +09:00
parent d0c016aab6
commit 930a17843f
3 changed files with 9 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ export const UsenetQueueList: FunctionComponent<UsenetQueueListProps> = ({ appId
const { data, isLoading, isError, error } = useGetUsenetDownloads({
limit: PAGE_SIZE,
offset: (page - 1) * PAGE_SIZE,
appId: appId,
appId,
});
const totalPages = Math.ceil((data?.total || 1) / PAGE_SIZE);