File tree Expand file tree Collapse file tree 4 files changed +132
-136
lines changed Expand file tree Collapse file tree 4 files changed +132
-136
lines changed Original file line number Diff line number Diff line change 1
- /* eslint indent:0 */
2
1
import React , { PropTypes } from 'react' ;
3
2
4
3
function syncNodeAttributes ( node , props ) {
@@ -15,7 +14,7 @@ function syncNodeAttributes(node, props) {
15
14
}
16
15
17
16
module . exports = React . createClass ( {
18
- displayName : 'Tab' ,
17
+ displayName : 'Tab' ,
19
18
20
19
propTypes : {
21
20
id : PropTypes . string ,
@@ -29,24 +28,24 @@ module.exports = React.createClass({
29
28
] )
30
29
} ,
31
30
32
- getDefaultProps ( ) {
31
+ getDefaultProps ( ) {
33
32
return {
34
- focus : false ,
35
- selected : false ,
36
- id : null ,
37
- panelId : null
38
- } ;
39
- } ,
33
+ focus : false ,
34
+ selected : false ,
35
+ id : null ,
36
+ panelId : null
37
+ } ;
38
+ } ,
40
39
41
- componentDidMount ( ) {
40
+ componentDidMount ( ) {
42
41
syncNodeAttributes ( this . getDOMNode ( ) , this . props ) ;
43
- } ,
42
+ } ,
44
43
45
- componentDidUpdate ( ) {
44
+ componentDidUpdate ( ) {
46
45
syncNodeAttributes ( this . getDOMNode ( ) , this . props ) ;
47
- } ,
46
+ } ,
48
47
49
- render ( ) {
48
+ render ( ) {
50
49
return (
51
50
< li
52
51
role = "tab"
@@ -59,5 +58,5 @@ module.exports = React.createClass({
59
58
{ this . props . children }
60
59
</ li >
61
60
) ;
62
- }
61
+ }
63
62
} ) ;
Original file line number Diff line number Diff line change 1
- /* eslint indent:0 */
2
1
import React , { PropTypes } from 'react' ;
3
2
4
3
module . exports = React . createClass ( {
5
- displayName : 'TabList' ,
4
+ displayName : 'TabList' ,
6
5
7
6
propTypes : {
8
7
children : PropTypes . oneOfType ( [
@@ -11,11 +10,11 @@ module.exports = React.createClass({
11
10
] )
12
11
} ,
13
12
14
- render ( ) {
13
+ render ( ) {
15
14
return (
16
15
< ul role = "tablist" >
17
16
{ this . props . children }
18
17
</ ul >
19
18
) ;
20
- }
19
+ }
21
20
} ) ;
Original file line number Diff line number Diff line change 1
- /* eslint indent:0 */
2
1
import React , { PropTypes } from 'react' ;
3
2
4
3
module . exports = React . createClass ( {
5
- displayName : 'TabPanel' ,
4
+ displayName : 'TabPanel' ,
6
5
7
6
propTypes : {
8
7
selected : PropTypes . bool ,
@@ -19,15 +18,15 @@ module.exports = React.createClass({
19
18
forceRenderTabPanel : PropTypes . bool
20
19
} ,
21
20
22
- getDefaultProps ( ) {
21
+ getDefaultProps ( ) {
23
22
return {
24
- selected : false ,
25
- id : null ,
26
- tabId : null
27
- } ;
28
- } ,
23
+ selected : false ,
24
+ id : null ,
25
+ tabId : null
26
+ } ;
27
+ } ,
29
28
30
- render ( ) {
29
+ render ( ) {
31
30
const children = ( this . context . forceRenderTabPanel || this . props . selected ) ?
32
31
this . props . children :
33
32
null ;
@@ -42,5 +41,5 @@ module.exports = React.createClass({
42
41
{ children }
43
42
</ div >
44
43
) ;
45
- }
44
+ }
46
45
} ) ;
You can’t perform that action at this time.
0 commit comments