diff options
Diffstat (limited to 'src/components/ui/Tabs')
-rw-r--r-- | src/components/ui/Tabs/Tabs.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/ui/Tabs/Tabs.js b/src/components/ui/Tabs/Tabs.js index 56c76f215..195398708 100644 --- a/src/components/ui/Tabs/Tabs.js +++ b/src/components/ui/Tabs/Tabs.js | |||
@@ -5,7 +5,6 @@ import classnames from 'classnames'; | |||
5 | 5 | ||
6 | import { oneOrManyChildElements } from '../../../prop-types'; | 6 | import { oneOrManyChildElements } from '../../../prop-types'; |
7 | 7 | ||
8 | export default | ||
9 | @observer | 8 | @observer |
10 | class Tab extends Component { | 9 | class Tab extends Component { |
11 | constructor(props) { | 10 | constructor(props) { |
@@ -28,7 +27,7 @@ class Tab extends Component { | |||
28 | 27 | ||
29 | render() { | 28 | render() { |
30 | const { children: childElements } = this.props; | 29 | const { children: childElements } = this.props; |
31 | const children = childElements.filter((c) => !!c); | 30 | const children = childElements.filter(c => !!c); |
32 | 31 | ||
33 | if (children.length === 1) { | 32 | if (children.length === 1) { |
34 | return <div>{children}</div>; | 33 | return <div>{children}</div>; |
@@ -69,3 +68,5 @@ class Tab extends Component { | |||
69 | ); | 68 | ); |
70 | } | 69 | } |
71 | } | 70 | } |
71 | |||
72 | export default Tab; | ||