@@ -6,7 +6,6 @@ import PropTypes from 'prop-types';
66 *
77 * @author Alex I.
88 * @version 2.0.0
9- *
109 * @param {object } props
1110 * @return {JSX.Element }
1211 */
@@ -64,18 +63,16 @@ const Panel = (props) => {
6463 ) ;
6564 }
6665 panelViews = (
67- < div className = 'pull-right' >
68- < div className = 'btn-group views' >
69- < button type = 'button'
70- className = 'btn btn-default btn-xs dropdown-toggle'
71- data-toggle = 'dropdown' >
72- Views< span className = 'caret' />
73- </ button >
74- < ul className = 'dropdown-menu pull-right'
75- role = 'menu' >
76- { views }
77- </ ul >
78- </ div >
66+ < div className = 'btn-group views' >
67+ < button type = 'button'
68+ className = 'btn btn-default btn-xs dropdown-toggle'
69+ data-toggle = 'dropdown' >
70+ Views< span className = 'caret' />
71+ </ button >
72+ < ul className = 'dropdown-menu pull-right'
73+ role = 'menu' >
74+ { views }
75+ </ ul >
7976 </ div >
8077 ) ;
8178 }
@@ -92,16 +89,16 @@ const Panel = (props) => {
9289 ? props . views [ activeView ] [ 'title' ]
9390 : props . title }
9491 </ h3 >
92+ { panelViews }
9593 { props . collapsing
9694 ? < span className = { collapsed ?
97- 'glyphicon pull-right glyphicon-chevron-down' :
98- 'glyphicon pull-right glyphicon-chevron-up' }
95+ 'glyphicon glyphicon-chevron-down' :
96+ 'glyphicon glyphicon-chevron-up' }
9997 onClick = { toggleCollapsed }
10098 data-toggle = 'collapse'
10199 data-target = { `#${ props . id } ` }
102100 style = { { cursor : 'pointer' } } />
103101 : null }
104- { panelViews }
105102 </ div >
106103 ) : '' ;
107104
@@ -130,6 +127,7 @@ const Panel = (props) => {
130127} ;
131128Panel . propTypes = {
132129 initCollapsed : PropTypes . bool ,
130+ props . collapsed : PropTypes . bool ,
133131 parentId : PropTypes . string ,
134132 id : PropTypes . string ,
135133 height : PropTypes . string ,
0 commit comments