Skip to content

Commit f5ee8ed

Browse files
committed
Upgrade dependencies and reformat
1 parent ac45dc4 commit f5ee8ed

File tree

4 files changed

+99
-155
lines changed

4 files changed

+99
-155
lines changed

src/components/UncontrolledTabs.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ function isTabDisabled(node) {
1818
return node.getAttribute('aria-disabled') === 'true';
1919
}
2020

21-
const canUseActiveElement = !!(typeof window !== 'undefined' &&
21+
const canUseActiveElement = !!(
22+
typeof window !== 'undefined' &&
2223
window.document &&
23-
window.document.activeElement);
24+
window.document.activeElement
25+
);
2426

2527
export default class UncontrolledTabs extends Component {
2628
static defaultProps = {

src/components/__tests__/Tabs-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ describe('<Tabs />', () => {
127127
const wrapper = mount(createTabs());
128128
const tablist = wrapper.childAt(0);
129129

130-
for (let i = 0, j = 0, l = tablist.children.length; i < l; i++, (j += 2)) {
130+
for (let i = 0, j = 0, l = tablist.children.length; i < l; i++, j += 2) {
131131
const tab = tablist.childAt(i);
132132
const panel = wrapper.childAt(i + 1);
133133

src/helpers/propTypes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export function childrenPropType(props, propName, componentName) {
3232
panelsCount++;
3333
} else {
3434
error = new Error(
35-
`Expected 'TabList' or 'TabPanel' but found '${child.type.displayName || child.type}' in \`${componentName}\``,
35+
`Expected 'TabList' or 'TabPanel' but found '${child.type.displayName ||
36+
child.type}' in \`${componentName}\``,
3637
);
3738
}
3839
});

0 commit comments

Comments
 (0)