@@ -55,10 +55,10 @@ class UnstyledFolderItem extends React.Component {
5555
5656 handleColorButtonClick ( e ) {
5757 const folder = Object . assign ( { } , this . state . folder , { showColumnPicker : true , colorPickerPos : { left : 0 , top : 0 } } )
58- this . setState ( { folder } , function ( ) {
58+ this . setState ( { folder } , function ( ) {
5959 // After the color picker has been painted, re-calculate its position
6060 // by comparing its dimensions to the host dimensions.
61- const { hostBoundingBox } = this . props ;
61+ const { hostBoundingBox } = this . props
6262 const colorPickerNode = ReactDOM . findDOMNode ( this . refs . colorPicker )
6363 const colorPickerBox = colorPickerNode . getBoundingClientRect ( )
6464 const offsetTop = hostBoundingBox . bottom - colorPickerBox . bottom
@@ -103,19 +103,22 @@ class UnstyledFolderItem extends React.Component {
103103 < button styleName = 'folderList-item-left-colorButton' style = { { color : this . state . folder . color } }
104104 onClick = { ( e ) => ! this . state . folder . showColumnPicker && this . handleColorButtonClick ( e ) }
105105 >
106- { this . state . folder . showColumnPicker ?
107- < div style = { popover } >
108- < div style = { cover }
109- onClick = { ( ) => this . handleColorPickerClose ( ) } />
106+ { this . state . folder . showColumnPicker
107+ ? < div style = { popover } >
108+ < div style = { cover }
109+ onClick = { ( ) => this . handleColorPickerClose ( ) }
110+ />
110111 < div style = { pickerStyle } >
111112 < SketchPicker
112- ref = " colorPicker"
113+ ref = ' colorPicker'
113114 color = { this . state . folder . color }
114- onChange = { ( color ) => this . handleColorChange ( color ) }
115- onChangeComplete = { ( color ) => this . handleColorChange ( color ) } />
115+ onChange = { ( color ) => this . handleColorChange ( color ) }
116+ onChangeComplete = { ( color ) => this . handleColorChange ( color ) }
117+ />
116118 </ div >
117119 </ div >
118- : null }
120+ : null
121+ }
119122 < i className = 'fa fa-square' />
120123 </ button >
121124 < input styleName = 'folderList-item-left-nameInput'
0 commit comments