This repository was archived by the owner on Apr 11, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export default class Expand extends React.Component {
17
17
] ) ,
18
18
className : React . PropTypes . string ,
19
19
collapseDuration : React . PropTypes . number ,
20
+ componentChildClassName : React . PropTypes . string ,
20
21
componentDidExpand : React . PropTypes . func ,
21
22
componentWillExpand : React . PropTypes . func ,
22
23
expandDuration : React . PropTypes . number ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export default class ExpandChild extends React.Component {
12
12
React . PropTypes . node
13
13
] ) ,
14
14
collapseDuration : React . PropTypes . number ,
15
+ componentChildClassName : React . PropTypes . string ,
15
16
componentDidExpand : React . PropTypes . func ,
16
17
componentWillExpand : React . PropTypes . func ,
17
18
expandDuration : React . PropTypes . number
@@ -128,7 +129,7 @@ export default class ExpandChild extends React.Component {
128
129
129
130
render ( ) {
130
131
return (
131
- < div style = { this . state . style } >
132
+ < div classNames = { this . props . componentChildClassName } style = { this . state . style } >
132
133
{ this . props . children }
133
134
</ div >
134
135
) ;
You can’t perform that action at this time.
0 commit comments