move keyCode

This commit is contained in:
mathuramg 2016-07-12 15:11:45 -04:00
parent da493e4014
commit 70f5638a47

View file

@ -11,12 +11,13 @@ function Sidebar(props) {
'sidebar__file-item--selected': file.id === props.selectedFile.id 'sidebar__file-item--selected': file.id === props.selectedFile.id
}); });
return ( return (
<li className={itemClass}> <li
<a className={itemClass}
key={file.id} key={file.id}
>
<a
onClick={() => props.setSelectedFile(file.id)} onClick={() => props.setSelectedFile(file.id)}
>{file.name} >{file.name}</a>
</a>
</li> </li>
); );
})} })}