mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 17:31:14 +01:00
No different open style highlight
This commit is contained in:
parent
97b665485e
commit
db095eea49
1 changed files with 7 additions and 10 deletions
|
@ -72,7 +72,6 @@ export default class Toolbar extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadButton() {
|
downloadButton() {
|
||||||
if(this.props.styleAvailable) {
|
|
||||||
return <InlineBlock>
|
return <InlineBlock>
|
||||||
<Button onClick={this.props.onStyleDownload} big={true}>
|
<Button onClick={this.props.onStyleDownload} big={true}>
|
||||||
<MdFileDownload />
|
<MdFileDownload />
|
||||||
|
@ -80,8 +79,6 @@ export default class Toolbar extends React.Component {
|
||||||
</Button>
|
</Button>
|
||||||
</InlineBlock>
|
</InlineBlock>
|
||||||
}
|
}
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
toggleSettings() {
|
toggleSettings() {
|
||||||
this.setState({openSettingsModal: !this.state.openSettingsModal})
|
this.setState({openSettingsModal: !this.state.openSettingsModal})
|
||||||
|
@ -125,7 +122,7 @@ export default class Toolbar extends React.Component {
|
||||||
</InlineBlock>
|
</InlineBlock>
|
||||||
<InlineBlock>
|
<InlineBlock>
|
||||||
<FileReaderInput onChange={this.onUpload.bind(this)}>
|
<FileReaderInput onChange={this.onUpload.bind(this)}>
|
||||||
<Button big={true} theme={this.props.styleAvailable ? "default" : "success"}>
|
<Button big={true}>
|
||||||
<MdOpenInBrowser />
|
<MdOpenInBrowser />
|
||||||
Open
|
Open
|
||||||
</Button>
|
</Button>
|
||||||
|
|
Loading…
Reference in a new issue