From f79a945fa42e0f282aec95451532092f97b80282 Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 8 Nov 2017 08:51:24 +0000 Subject: [PATCH] Fixed more eslint errors. --- src/components/Toolbar.jsx | 4 +++- src/components/fields/FunctionSpecField.jsx | 1 + src/components/modals/ExportModal.jsx | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/Toolbar.jsx b/src/components/Toolbar.jsx index 383e585..f7313e7 100644 --- a/src/components/Toolbar.jsx +++ b/src/components/Toolbar.jsx @@ -39,6 +39,7 @@ class ToolbarLink extends React.Component { static propTypes = { className: PropTypes.string, children: PropTypes.node, + href: PropTypes.string, } render() { @@ -54,7 +55,8 @@ class ToolbarLink extends React.Component { class ToolbarAction extends React.Component { static propTypes = { - children: PropTypes.node + children: PropTypes.node, + onClick: PropTypes.func } render() { diff --git a/src/components/fields/FunctionSpecField.jsx b/src/components/fields/FunctionSpecField.jsx index b443000..aa102dc 100644 --- a/src/components/fields/FunctionSpecField.jsx +++ b/src/components/fields/FunctionSpecField.jsx @@ -306,6 +306,7 @@ class MakeFunctionButtons extends React.Component { static propTypes = { fieldSpec: PropTypes.object, onZoomClick: PropTypes.func, + onDataClick: PropTypes.func, } render() { diff --git a/src/components/modals/ExportModal.jsx b/src/components/modals/ExportModal.jsx index 48677b1..1371835 100644 --- a/src/components/modals/ExportModal.jsx +++ b/src/components/modals/ExportModal.jsx @@ -127,7 +127,7 @@ class Gist extends React.Component { const user = gist.user || 'anonymous'; const preview = !!gist.files['index.html']; if(preview) { - return Preview,{' '} + return Preview,{' '} } return null; } @@ -145,7 +145,7 @@ class Gist extends React.Component {

Latest saved gist:{' '} {this.renderPreviewLink(this)} - Source + Source

@@ -178,7 +178,7 @@ class Gist extends React.Component { value={(this.props.mapStyle.metadata || {})['maputnik:openmaptiles_access_token']} onChange={this.changeMetadataProperty.bind(this, "maputnik:openmaptiles_access_token")}/> - Get your free access token + Get your free access token : null} {this.renderLatestGist()}