mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 02:05:25 +01:00
Fixed more eslint errors.
This commit is contained in:
parent
8234c51412
commit
f79a945fa4
3 changed files with 7 additions and 4 deletions
|
@ -39,6 +39,7 @@ class ToolbarLink extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
children: PropTypes.node,
|
children: PropTypes.node,
|
||||||
|
href: PropTypes.string,
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
@ -54,7 +55,8 @@ class ToolbarLink extends React.Component {
|
||||||
|
|
||||||
class ToolbarAction extends React.Component {
|
class ToolbarAction extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
children: PropTypes.node
|
children: PropTypes.node,
|
||||||
|
onClick: PropTypes.func
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -306,6 +306,7 @@ class MakeFunctionButtons extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
fieldSpec: PropTypes.object,
|
fieldSpec: PropTypes.object,
|
||||||
onZoomClick: PropTypes.func,
|
onZoomClick: PropTypes.func,
|
||||||
|
onDataClick: PropTypes.func,
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -127,7 +127,7 @@ class Gist extends React.Component {
|
||||||
const user = gist.user || 'anonymous';
|
const user = gist.user || 'anonymous';
|
||||||
const preview = !!gist.files['index.html'];
|
const preview = !!gist.files['index.html'];
|
||||||
if(preview) {
|
if(preview) {
|
||||||
return <span><a target="_blank" href={"https://bl.ocks.org/"+user+"/"+gist.id}>Preview</a>,{' '}</span>
|
return <span><a target="_blank" rel="noopener noreferrer" href={"https://bl.ocks.org/"+user+"/"+gist.id}>Preview</a>,{' '}</span>
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ class Gist extends React.Component {
|
||||||
<p>
|
<p>
|
||||||
Latest saved gist:{' '}
|
Latest saved gist:{' '}
|
||||||
{this.renderPreviewLink(this)}
|
{this.renderPreviewLink(this)}
|
||||||
<a target="_blank" href={"https://gist.github.com/" + user + "/" + gist.id}>Source</a>
|
<a target="_blank" rel="noopener noreferrer" href={"https://gist.github.com/" + user + "/" + gist.id}>Source</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<CopyToClipboard text={maputnikStyleLink}>
|
<CopyToClipboard text={maputnikStyleLink}>
|
||||||
|
@ -178,7 +178,7 @@ class Gist extends React.Component {
|
||||||
value={(this.props.mapStyle.metadata || {})['maputnik:openmaptiles_access_token']}
|
value={(this.props.mapStyle.metadata || {})['maputnik:openmaptiles_access_token']}
|
||||||
onChange={this.changeMetadataProperty.bind(this, "maputnik:openmaptiles_access_token")}/>
|
onChange={this.changeMetadataProperty.bind(this, "maputnik:openmaptiles_access_token")}/>
|
||||||
</InputBlock>
|
</InputBlock>
|
||||||
<a target="_blank" href="https://openmaptiles.com/hosting/">Get your free access token</a>
|
<a target="_blank" rel="noopener noreferrer" href="https://openmaptiles.com/hosting/">Get your free access token</a>
|
||||||
</div>
|
</div>
|
||||||
: null}
|
: null}
|
||||||
{this.renderLatestGist()}
|
{this.renderLatestGist()}
|
||||||
|
|
Loading…
Reference in a new issue