Skip to content

Commit

Permalink
Style(web-react): Apply formatting rules after deps update
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Aug 26, 2024
1 parent bca6b32 commit b17afbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback, useMemo, useState } from 'react';
import { UsePaginationProps } from '../../types/pagination';

export const usePagination = ({ totalPages, onChange, defaultPage, visiblePages }: UsePaginationProps) => {
const [currentPage, setCurrentPage] = useState(defaultPage <= 0 || defaultPage > totalPages ? 1 : defaultPage ?? 1);
const [currentPage, setCurrentPage] = useState(defaultPage <= 0 || defaultPage > totalPages ? 1 : (defaultPage ?? 1));
const [pages, setPagesArray] = useState([visiblePages] ?? [5]);

useMemo(() => {
Expand Down

0 comments on commit b17afbd

Please sign in to comment.