File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import _ from 'lodash' ;
21import React , { Component , PropTypes } from 'react' ;
32import classNames from 'classnames' ;
43import META from 'src/utils/Meta' ;
@@ -7,7 +6,6 @@ export default class Divider extends Component {
76 static propTypes = {
87 children : PropTypes . node ,
98 className : PropTypes . string ,
10- header : PropTypes . string ,
119 } ;
1210
1311 static _meta = {
@@ -17,8 +15,6 @@ export default class Divider extends Component {
1715 } ;
1816
1917 render ( ) {
20- const children = _ . clone ( this . props . children ) ;
21- const header = < div className = 'header' > { this . props . header } </ div > ;
2218 const classes = classNames (
2319 'sd-button' ,
2420 'ui' ,
@@ -27,9 +23,7 @@ export default class Divider extends Component {
2723 ) ;
2824 return (
2925 < div { ...this . props } className = { classes } >
30- < div className = 'divider' >
31- { children | header }
32- </ div >
26+ { this . props . children }
3327 </ div >
3428 ) ;
3529 }
You can’t perform that action at this time.
0 commit comments