Skip to content

Commit

Permalink
refactor(pagination): ♻️ restore default
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Sep 10, 2020
1 parent f714398 commit 4ba0c6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pagination/PaginationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export interface UsePaginationProps {

export const usePaginationState = (props: UsePaginationProps = {}) => {
const {
count = 20,
count = 1,
defaultPage = 1,
boundaryCount = 3,
boundaryCount = 1,
siblingCount = 1,
page: currentPage,
onChange,
Expand Down
2 changes: 1 addition & 1 deletion src/pagination/stories/Pagination.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
} as Meta;

const PaginationComp: React.FC<UsePaginationProps> = props => {
const state = usePaginationState(props);
const state = usePaginationState({ count: 10, ...props });

return (
<Pagination {...state}>
Expand Down

0 comments on commit 4ba0c6d

Please sign in to comment.