From 7ad32293f3ef0286109759d57bb5030d8a03ac2c Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Thu, 15 Jul 2021 16:10:55 -0600 Subject: [PATCH] ui(admin): table improvements --- resources/scripts/components/admin/AdminTable.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/scripts/components/admin/AdminTable.tsx b/resources/scripts/components/admin/AdminTable.tsx index 1ec140e0b..09cbd0812 100644 --- a/resources/scripts/components/admin/AdminTable.tsx +++ b/resources/scripts/components/admin/AdminTable.tsx @@ -137,7 +137,7 @@ export function Pagination ({ data, onPageSelect, children }: Props) {

- Showing {((pagination.currentPage - 1) * pagination.perPage) + 1} to {((pagination.currentPage - 1) * pagination.perPage) + pagination.count} of {pagination.total} results + Showing {((pagination.currentPage - 1) * pagination.perPage) + (pagination.total > 0 ? 1 : 0)} to {((pagination.currentPage - 1) * pagination.perPage) + pagination.count} of {pagination.total} results

{isFirstPage && isLastPage ? @@ -180,8 +180,8 @@ export const Loading = () => { export const NoItems = () => { return ( -
-
+
+
{'No