Skip to content
Snippets Groups Projects
Commit 8d0372e4 authored by Tom Robinson's avatar Tom Robinson
Browse files

Misc SelectPicker cleanup

parent fad7c2d3
No related branches found
No related tags found
No related merge requests found
......@@ -29,16 +29,14 @@ export default class SelectPicker extends Component {
<h5>{placeholder}</h5>
: null }
<ul>
{options.map((option, index) => {
return (
<li key={index}>
<label className="flex align-center full cursor-pointer p1" onClick={(e) => this.selectValue(option.key, !checked[option.key])}>
<CheckBox checked={checked[option.key]} />
<h4 className="ml1">{option.name}</h4>
</label>
</li>
)
})}
{options.map((option, index) =>
<li key={index}>
<label className="flex align-center full cursor-pointer p1" onClick={(e) => this.selectValue(option.key, !checked[option.key])}>
<CheckBox checked={checked[option.key]} />
<h4 className="ml1">{option.name}</h4>
</label>
</li>
)}
</ul>
</div>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment