Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 Refined the paginator #135

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
💄 Update paginator-ui-component.ts
ckersey2 authored Nov 7, 2024
commit 0a001266cabfc88d09559bbf27763013b6388174
6 changes: 3 additions & 3 deletions src/components/paginator-ui-component.ts
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
Nullable,
} from '../internal/types';

export type PaginatorActionIdFn =
export type PaginatorActionIdFn =
StringReturnableFn<PaginatorState & { buttonId: PaginatorButtonId }>;

export interface PageCountTextFnParams {
@@ -31,8 +31,8 @@
builderFunction: PaginatorBuilderFn<T>;
}

const defaultPageCountText = ({ page, totalPages }: PageCountTextFnParams) =>
`Page ${page} of ${totalPages}`;
const defaultPageCountText = ({ page, totalPages }: PageCountTextFnParams) =>
`Page ${page} of ${totalPages}`;

Check failure on line 35 in src/components/paginator-ui-component.ts

GitHub Actions / Lint, Test, and Build on Node.js 12.x

Expected no linebreak before this expression

Check failure on line 35 in src/components/paginator-ui-component.ts

GitHub Actions / Lint, Test, and Build on Node.js 12.x

Expected indentation of 2 spaces but found 0

Check failure on line 35 in src/components/paginator-ui-component.ts

GitHub Actions / Lint, Test, and Build on Node.js 13.x

Expected no linebreak before this expression

Check failure on line 35 in src/components/paginator-ui-component.ts

GitHub Actions / Lint, Test, and Build on Node.js 13.x

Expected indentation of 2 spaces but found 0

Check failure on line 35 in src/components/paginator-ui-component.ts

GitHub Actions / Lint, Test, and Build on Node.js 14.x

Expected no linebreak before this expression

Check failure on line 35 in src/components/paginator-ui-component.ts

GitHub Actions / Lint, Test, and Build on Node.js 14.x

Expected indentation of 2 spaces but found 0

export class PaginatorUIComponent<T> {
private readonly items: T[];