mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 15:40:00 +00:00
Fixed lint errors.
This commit is contained in:
@@ -9,6 +9,7 @@ class AppLayout extends React.Component {
|
||||
layerEditor: PropTypes.element,
|
||||
map: PropTypes.element.isRequired,
|
||||
bottom: PropTypes.element,
|
||||
modals: PropTypes.node,
|
||||
}
|
||||
|
||||
static childContextTypes = {
|
||||
|
||||
@@ -37,6 +37,7 @@ class ToolbarLink extends React.Component {
|
||||
className: PropTypes.string,
|
||||
children: PropTypes.node,
|
||||
href: PropTypes.string,
|
||||
onToggleModal: PropTypes.func,
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
@@ -60,7 +60,7 @@ class ShortcutsModal extends React.Component {
|
||||
</p>
|
||||
<ul>
|
||||
{help.map((item) => {
|
||||
return <li>
|
||||
return <li key={item.key}>
|
||||
<code>{item.key}</code> {item.text}
|
||||
</li>
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user