Skip to content

Commit

Permalink
Upgrade libraries. Fix ShowMore feat
Browse files Browse the repository at this point in the history
  • Loading branch information
maslianok committed Aug 11, 2021
1 parent d0f3cfd commit 6146838
Show file tree
Hide file tree
Showing 3 changed files with 965 additions and 873 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@
"classnames": "^2.3.1",
"lodash.throttle": "^4.1.1",
"prop-types": "^15.7.2",
"react-resize-detector": "^6.7.0"
"react-resize-detector": "^6.7.5"
},
"devDependencies": {
"@babel/cli": "^7.13.16",
"@babel/core": "^7.13.16",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/preset-env": "^7.13.15",
"@babel/preset-react": "^7.13.13",
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"babel-eslint": "^10.1.0",
"babel-plugin-module-resolver": "^4.1.0",
"babel-plugin-transform-imports": "^2.0.0",
"cross-env": "^7.0.3",
"eslint": "^7.25.0",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-import": "^2.24.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react": "^7.24.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rimraf": "^3.0.2"
Expand Down
13 changes: 3 additions & 10 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default class Tabs extends Component {
}
});

this.setState({ tabDimensions, tabsTotalWidth, blockWidth });
this.setState({ tabDimensions: tabDimensionsNext, tabsTotalWidth, blockWidth });
};

getTabs = () => {
Expand Down Expand Up @@ -339,15 +339,8 @@ export default class Tabs extends Component {
};

render() {
const {
showInkBar,
containerClass,
tabsWrapperClass,
showMore,
transform,
showMoreLabel,
unmountOnExit,
} = this.props;
const { showInkBar, containerClass, tabsWrapperClass, showMore, transform, showMoreLabel, unmountOnExit } =
this.props;
const { tabDimensions } = this.state;
const { tabsVisible, tabsHidden, panels, isSelectedTabHidden } = this.getTabs();
const isCollapsed = this.getIsCollapsed();
Expand Down
Loading

0 comments on commit 6146838

Please sign in to comment.