diff --git a/src/components/app-pagination/AppPaginationElement.ts b/src/components/app-pagination/AppPaginationElement.ts index ff75c53..11aa89e 100644 --- a/src/components/app-pagination/AppPaginationElement.ts +++ b/src/components/app-pagination/AppPaginationElement.ts @@ -2,6 +2,7 @@ import { attr, controller, target } from '@github/catalyst'; import { html, TemplateResult } from 'core/utils'; import { BaseComponentElement } from 'common/'; import { CircleLoaderElement } from 'components/circle-loader/CircleLoaderElement'; +import dayjs from 'dayjs'; @controller class AppPaginationElement extends BaseComponentElement { @@ -36,7 +37,7 @@ class AppPaginationElement extends BaseComponentElement { this.fetchFunc = fetchFunc; if (autoInit) { const options = { - rpp: this.rpp || 5, + rpp: this.rpp || 10, page: this.page || 1, }; this.executeFetch(options); @@ -100,7 +101,7 @@ class AppPaginationElement extends BaseComponentElement { const renderItem = this.customRenderItem ? this.customRenderItem : (item, iter) => html` - ${iter + 1 + rpp * (page - 1)} + ${dayjs(item.transactionDate).format("MMM DD 'YY")} ${item.description} - ${totalItems} Total Items + (${items?.length}) / ${totalItems} Total Items