Skip to content

Commit f682b30

Browse files
committed
Upgrade dependencies
1 parent 938b330 commit f682b30

File tree

3 files changed

+2728
-1564
lines changed

3 files changed

+2728
-1564
lines changed

package.json

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,8 @@
1212
"example": "examples"
1313
},
1414
"homepage": "https://github.com/maslianok/react-responsive-tabs",
15-
"keywords": [
16-
"react",
17-
"responsive",
18-
"tabs",
19-
"tab"
20-
],
21-
"maintainers": [
22-
"maslianok <[email protected]>"
23-
],
15+
"keywords": ["react", "responsive", "tabs", "tab"],
16+
"maintainers": ["maslianok <[email protected]>"],
2417
"repository": {
2518
"type": "git",
2619
"url": "git+https://github.com/maslianok/react-responsive-tabs.git"
@@ -32,29 +25,29 @@
3225
"classnames": "^2.2.5",
3326
"lodash.throttle": "^4.1.1",
3427
"prop-types": "^15.5.10",
35-
"react": "^15.5.4",
36-
"react-resize-detector": "^0.5.0"
28+
"react": "^15.6.1",
29+
"react-resize-detector": "^0.6.0"
3730
},
3831
"devDependencies": {
39-
"babel-cli": "^6.24.0",
40-
"babel-eslint": "^7.2.0",
41-
"babel-jest": "^19.0.0",
42-
"babel-loader": "^6.4.1",
43-
"babel-plugin-transform-class-properties": "^6.23.0",
44-
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.0",
45-
"babel-plugin-transform-object-rest-spread": "^6.23.0",
46-
"babel-preset-latest": "^6.24.0",
47-
"babel-preset-react": "^6.23.0",
48-
"cross-env": "^3.2.4",
49-
"eslint": "^3.18.0",
50-
"eslint-config-airbnb": "^14.1.0",
51-
"eslint-plugin-import": "^2.2.0",
52-
"eslint-plugin-jsx-a11y": "^4.0.0",
53-
"eslint-plugin-react": "^6.10.3",
54-
"jest": "^19.0.2",
55-
"react-scripts": "^0.9.5",
32+
"babel-cli": "^6.26.0",
33+
"babel-eslint": "^7.2.3",
34+
"babel-jest": "^20.0.3",
35+
"babel-loader": "^7.1.2",
36+
"babel-plugin-transform-class-properties": "^6.24.1",
37+
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
38+
"babel-plugin-transform-object-rest-spread": "^6.26.0",
39+
"babel-preset-latest": "^6.24.1",
40+
"babel-preset-react": "^6.24.1",
41+
"cross-env": "^5.0.5",
42+
"eslint": "^4.5.0",
43+
"eslint-config-airbnb": "^15.1.0",
44+
"eslint-plugin-import": "^2.7.0",
45+
"eslint-plugin-jsx-a11y": "^5.0.3",
46+
"eslint-plugin-react": "^7.3.0",
47+
"jest": "^20.0.4",
48+
"react-scripts": "^1.0.12",
5649
"rimraf": "^2.6.1",
57-
"webpack": "^2.2.1"
50+
"webpack": "^3.5.5"
5851
},
5952
"scripts": {
6053
"clean": "rimraf lib dist es coverage",

src/components/ShowMore.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint jsx-a11y/no-noninteractive-element-interactions: 0, jsx-a11y/no-noninteractive-tabindex: 0 */
2+
13
import React, { PureComponent } from 'react';
24
import classNames from 'classnames';
35
import PropTypes from 'prop-types';
@@ -20,9 +22,11 @@ export default class ShowMore extends PureComponent {
2022
}
2123

2224
shouldComponentUpdate(nextProps, nextState) {
23-
return this.props.children.length !== nextProps.children.length ||
25+
return (
26+
this.props.children.length !== nextProps.children.length ||
2427
this.props.isShown !== nextProps.isShown ||
25-
this.state !== nextState;
28+
this.state !== nextState
29+
);
2630
}
2731

2832
componentWillUnmount() {

0 commit comments

Comments
 (0)