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
|
'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>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
Loading…
Reference in a new issue