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
});
return (
<li className={itemClass}>
<li
className={itemClass}
key={file.id}
>
<a
key={file.id}
onClick={() => props.setSelectedFile(file.id)}
>{file.name}
</a>
>{file.name}</a>
</li>
);
})}