Skip to content

Commit

Permalink
fixup! Deps: Update all non-major dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Sep 11, 2024
1 parent 930f353 commit 71e5916
Show file tree
Hide file tree
Showing 5 changed files with 730 additions and 145 deletions.
28 changes: 14 additions & 14 deletions exporters/variables-scss/generated/exporter.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"webpack-cli": "5.1.4"
},
"resolutions": {
"@types/react": "18.3.5",
"@types/react": "18.3.3",
"typescript": "4.7.4"
},
"packageManager": "[email protected]"
Expand Down
48 changes: 24 additions & 24 deletions packages/web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,63 +23,63 @@
"@floating-ui/react": "^0.26.5",
"@react-hook/resize-observer": "^2.0.0",
"classnames": "^2.3.1",
"html-dom-parser": "5.0.10",
"html-react-parser": "5.1.15",
"html-dom-parser": "5.0.8",
"html-react-parser": "5.1.10",
"react-transition-group": "^4.4.5"
},
"devDependencies": {
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.4",
"@babel/preset-env": "7.24.7",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@lmc-eu/eslint-config-base": "3.1.2",
"@lmc-eu/eslint-config-jest": "3.0.5",
"@lmc-eu/eslint-config-react": "2.0.5",
"@lmc-eu/eslint-config-typescript": "2.1.4",
"@lmc-eu/eslint-config-base": "3.0.2",
"@lmc-eu/eslint-config-jest": "3.0.2",
"@lmc-eu/eslint-config-react": "2.0.2",
"@lmc-eu/eslint-config-typescript": "2.1.1",
"@lmc-eu/spirit-common": "^0.3.5",
"@lmc-eu/spirit-demo": "^0.1.3",
"@lmc-eu/spirit-design-tokens": "^2.1.0",
"@lmc-eu/spirit-web": "^2.4.0",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-terser": "0.4.4",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.5.0",
"@testing-library/react": "16.0.1",
"@testing-library/dom": "10.2.0",
"@testing-library/jest-dom": "6.4.6",
"@testing-library/react": "16.0.0",
"@testing-library/user-event": "14.5.2",
"@types/babel__core": "7.20.5",
"@types/jest": "29.5.12",
"@types/node": "20.16.5",
"@types/react": "18.3.5",
"@types/node": "20.14.9",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-transition-group": "4.4.11",
"@types/react-transition-group": "4.4.10",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"eslint": "8.57.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-jsx-a11y": "6.10.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-promise": "6.6.0",
"eslint-plugin-react": "7.35.2",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-prettier": "5.1.0",
"eslint-plugin-promise": "6.2.0",
"eslint-plugin-react": "7.34.3",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-refresh": "0.4.11",
"eslint-plugin-react-refresh": "0.4.7",
"eslint-plugin-standard": "5.0.0",
"glob": "10.4.5",
"glob": "10.4.2",
"jest": "29.7.0",
"npm-run-all": "4.1.5",
"prettier": "3.3.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"recast": "0.23.9",
"rollup": "4.21.2",
"sass": "1.78.0",
"rollup": "4.18.0",
"sass": "1.77.6",
"shx": "0.3.4",
"terser-webpack-plugin": "5.3.10",
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"typescript": "5.6.2",
"webpack": "5.94.0",
"typescript": "5.5.2",
"webpack": "5.92.1",
"webpack-cli": "5.1.4",
"webpack-merge": "5.10.0"
},
Expand Down
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
Loading

0 comments on commit 71e5916

Please sign in to comment.