move keyCode
This commit is contained in:
parent
da493e4014
commit
70f5638a47
1 changed files with 5 additions and 4 deletions
|
@ -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>
|
||||
);
|
||||
})}
|
||||
|
|
Loading…
Reference in a new issue