Skip to content

Commit

Permalink
Update packages and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
szmslab committed Jul 4, 2021
1 parent 8be8a34 commit c52784d
Show file tree
Hide file tree
Showing 7 changed files with 4,992 additions and 7,102 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
"prettier"
],
"plugins": [
"@typescript-eslint"
Expand Down
5,703 changes: 2,252 additions & 3,451 deletions docs/package-lock.json

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@
"version": "4.1.1",
"author": "szmslab <[email protected]> (https://github.com/szmslab)",
"dependencies": {
"@material-ui/core": "^4.10.1",
"@material-ui/icons": "^4.9.1",
"react": "^16.13.1",
"react-dom": "^16.13.1"
"@material-ui/core": "^4.11.4",
"@material-ui/icons": "^4.11.2",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.8",
"@typescript-eslint/eslint-plugin": "^3.1.0",
"@typescript-eslint/parser": "^3.1.0",
"classnames": "^2.2.6",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.20.0",
"@types/react": "^17.0.13",
"@types/react-dom": "^17.0.8",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"classnames": "^2.3.1",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"path": "^0.12.7",
"prettier": "^2.0.5",
"ts-loader": "^7.0.5",
"typescript": "^3.9.3",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.11.0"
"prettier": "^2.3.2",
"ts-loader": "^9.2.3",
"typescript": "^4.3.5",
"webpack": "^5.42.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2"
},
"license": "MIT",
"main": "",
"private": true,
"scripts": {
"build": "webpack -p --progress",
"devserver": "webpack-dev-server -d --progress --hot",
"devserver": "webpack serve --progress --hot",
"lint": "eslint src/ --ext .ts,.tsx",
"test": "echo \"Error: no test specified\" && exit 1"
}
Expand Down
24 changes: 11 additions & 13 deletions docs/src/Demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,17 @@ class Demo extends React.PureComponent<WithStyles<typeof styles>, DemoState> {
);
}

private handleClick = (paginationType: PaginationType) => (
ev: React.MouseEvent<HTMLElement>,
offset: number
) => {
setTimeout(() => {
this.setState({
[paginationType]: {
...this.state[paginationType],
offset,
},
});
}, 240);
};
private handleClick =
(paginationType: PaginationType) => (ev: React.MouseEvent<HTMLElement>, offset: number) => {
setTimeout(() => {
this.setState({
[paginationType]: {
...this.state[paginationType],
offset,
},
});
}, 240);
};

private handleToggleTheme = () => {
this.setState({
Expand Down
Loading

0 comments on commit c52784d

Please sign in to comment.