This repository was archived by the owner on Oct 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-40
lines changed Expand file tree Collapse file tree 4 files changed +13
-40
lines changed Original file line number Diff line number Diff line change 1
1
import React , { PropTypes } from 'react/addons' ;
2
- import classNames from 'classnames' ;
3
2
4
3
import ListItem from './ListItem' ;
5
4
@@ -40,18 +39,10 @@ export default class List extends React.Component {
40
39
}
41
40
42
41
render ( ) {
43
- let defaultClasses = [
44
- 'list'
45
- ] ;
46
-
47
- let classes = classNames (
48
- defaultClasses . concat ( this . props . className . split ( ' ' ) )
49
- ) ;
50
-
51
42
let Tag = this . props . tag ;
52
43
53
44
return (
54
- < Tag { ...this . props } className = { classes } >
45
+ < Tag { ...this . props } className = { this . props . className } >
55
46
{ this . getListItems ( this . props . items ) }
56
47
</ Tag >
57
48
) ;
@@ -63,15 +54,19 @@ List.defaultProps = {
63
54
attributes : {
64
55
className : ''
65
56
} ,
66
- className : '' ,
67
- tag : 'ul'
57
+ tag : 'ul' ,
58
+
59
+ // Default classes.
60
+ className : 'list'
68
61
} ;
69
62
70
63
List . propTypes = {
71
64
attributes : PropTypes . object ,
72
- className : PropTypes . string ,
73
65
items : PropTypes . array . isRequired ,
74
66
tag : PropTypes . string ,
75
67
transition : PropTypes . bool ,
76
- transitionName : PropTypes . string
68
+ transitionName : PropTypes . string ,
69
+
70
+ // Classes.
71
+ className : PropTypes . string
77
72
} ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ ModalContents.defaultProps = {
247
247
subHeader : null ,
248
248
titleText : '' ,
249
249
250
- // Classes
250
+ // Default classes.
251
251
backdropClass : 'fade in modal-backdrop' ,
252
252
bodyClass : 'modal-content' ,
253
253
closeButtonClass : 'modal-close' ,
@@ -276,7 +276,7 @@ ModalContents.propTypes = {
276
276
subHeader : PropTypes . node ,
277
277
titleText : PropTypes . string ,
278
278
279
- // Classes
279
+ // Classes.
280
280
backdropClass : PropTypes . string ,
281
281
bodyClass : PropTypes . string ,
282
282
closeButtonClass : PropTypes . string ,
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ SidePanelContents.defaultProps = {
138
138
onClose : ( ) => { } ,
139
139
open : false ,
140
140
141
- // Classes
141
+ // Default classes.
142
142
backdropClass : 'side-panel-backdrop' ,
143
143
bodyClass : 'side-panel-content container container-scrollable container-fluid container-fluid-narrow' ,
144
144
containerClass : 'side-panel-container' ,
@@ -154,7 +154,7 @@ SidePanelContents.propTypes = {
154
154
onClose : PropTypes . func ,
155
155
open : PropTypes . bool ,
156
156
157
- // Classes
157
+ // Classes.
158
158
backdropClass : PropTypes . string ,
159
159
bodyClass : PropTypes . string ,
160
160
containerClass : PropTypes . string ,
You can’t perform that action at this time.
0 commit comments