mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
fix style
This commit is contained in:
@@ -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>
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user