1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

fix style

This commit is contained in:
Rokt33r
2015-11-15 20:40:43 +09:00
parent 26a08fac06
commit bbc3c85212
2 changed files with 22 additions and 22 deletions

View File

@@ -62,13 +62,12 @@ export default class CreateNewFolder extends React.Component {
colorIndexes.push(i)
}
let colorElements = colorIndexes.map(index => {
let className = index === this.state.color
? 'active'
: null
let className = 'option'
if (index === this.state.color) className += ' active'
return (
<span className='option' key={index} onClick={e => this.handleColorClick(index)(e)}>
<FolderMark className={className} color={index}/>
<span className={className} key={index} onClick={e => this.handleColorClick(index)(e)}>
<FolderMark color={index}/>
</span>
)
})