diff --git a/.github/workflows/pr-spelling.template.yml b/.github/workflows/pr-spelling.template.yml index 693670589..545613ca4 100644 --- a/.github/workflows/pr-spelling.template.yml +++ b/.github/workflows/pr-spelling.template.yml @@ -6,7 +6,7 @@ jobs: name: Spell Check with Typos runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Check spelling uses: crate-ci/typos@master with: diff --git a/.github/workflows/typos-config.toml b/.github/workflows/typos-config.toml index 68ac8ef5d..3fa11b791 100644 --- a/.github/workflows/typos-config.toml +++ b/.github/workflows/typos-config.toml @@ -1,10 +1,7 @@ +default.check-filename = true + [default.extend-words] -actived = "actived" -formated = "formated" -formate = "formate" -ba = "ba" -Contrl = "Contrl" -thead = "thead" +actived="actived" [files] -extend-exclude = ["CHANGELOG.md"] +extend-exclude = ["CHANGELOG.md", "*.snap"] diff --git a/src/pagination/Pagination.tsx b/src/pagination/Pagination.tsx index 21dd5261a..4ab11e17e 100644 --- a/src/pagination/Pagination.tsx +++ b/src/pagination/Pagination.tsx @@ -114,7 +114,7 @@ const Pagination = forwardRef((originalProps, r } }; - const { totalContrl } = useTotal({ totalContent, pageSize, current, total }); + const { totalControl } = useTotal({ totalContent, pageSize, current, total }); const { firstPageJumper, lastPageJumper } = useBoundaryJumper({ disabled, @@ -132,7 +132,7 @@ const Pagination = forwardRef((originalProps, r changeCurrent, }); - const { pageNumberContrl } = usePageNumber({ + const { pageNumberControl } = usePageNumber({ showPageNumber, maxPageBtn, disabled, @@ -147,7 +147,7 @@ const Pagination = forwardRef((originalProps, r setJumpValue(current); }, [current]); - const pageSizeContrl = + const pageSizeControl = showPageSize && pageSizeOptions.length ? (