From 67ba27437747723378028a24bc7da9aeaa359e27 Mon Sep 17 00:00:00 2001 From: oiov Date: Thu, 10 Jul 2025 16:07:44 +0800 Subject: [PATCH] chore: pagenation show total num --- app/(protected)/admin/storage/loading.tsx | 1 + app/(protected)/dashboard/storage/loading.tsx | 1 + components/shared/pagination.tsx | 3 +++ locales/en.json | 4 +++- locales/zh.json | 4 +++- public/sw.js.map | 2 +- 6 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/(protected)/admin/storage/loading.tsx b/app/(protected)/admin/storage/loading.tsx index 2123322..1eab0dd 100644 --- a/app/(protected)/admin/storage/loading.tsx +++ b/app/(protected)/admin/storage/loading.tsx @@ -8,6 +8,7 @@ export default function DashboardRecordsLoading() { heading="Manage DNS Records" text="List and manage records" /> + ); diff --git a/app/(protected)/dashboard/storage/loading.tsx b/app/(protected)/dashboard/storage/loading.tsx index 2123322..1eab0dd 100644 --- a/app/(protected)/dashboard/storage/loading.tsx +++ b/app/(protected)/dashboard/storage/loading.tsx @@ -8,6 +8,7 @@ export default function DashboardRecordsLoading() { heading="Manage DNS Records" text="List and manage records" /> + ); diff --git a/components/shared/pagination.tsx b/components/shared/pagination.tsx index 0c9a9c2..e130088 100644 --- a/components/shared/pagination.tsx +++ b/components/shared/pagination.tsx @@ -147,6 +147,9 @@ export function PaginationWrapper({ > {setPageSize && (
+ + {t("Total")} {total} {t("items")}, + {t("Show")}