Fixed lint errors.

This commit is contained in:
orangemug 2018-06-03 10:00:50 +01:00
parent 1e09066779
commit 00afbad7ac
3 changed files with 3 additions and 1 deletions

View file

@ -9,6 +9,7 @@ class AppLayout extends React.Component {
layerEditor: PropTypes.element, layerEditor: PropTypes.element,
map: PropTypes.element.isRequired, map: PropTypes.element.isRequired,
bottom: PropTypes.element, bottom: PropTypes.element,
modals: PropTypes.node,
} }
static childContextTypes = { static childContextTypes = {

View file

@ -37,6 +37,7 @@ class ToolbarLink extends React.Component {
className: PropTypes.string, className: PropTypes.string,
children: PropTypes.node, children: PropTypes.node,
href: PropTypes.string, href: PropTypes.string,
onToggleModal: PropTypes.func,
} }
render() { render() {

View file

@ -60,7 +60,7 @@ class ShortcutsModal extends React.Component {
</p> </p>
<ul> <ul>
{help.map((item) => { {help.map((item) => {
return <li> return <li key={item.key}>
<code>{item.key}</code> {item.text} <code>{item.key}</code> {item.text}
</li> </li>
})} })}