mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-14 14:23:27 +01:00
Switch over to tabs
This commit is contained in:
parent
e27b88c6bc
commit
0e65ac8937
10 changed files with 80 additions and 75 deletions
|
@ -56,7 +56,7 @@ export default class App extends React.Component {
|
|||
}
|
||||
|
||||
onOpenSettings() {
|
||||
this.setState({ workContext: "settings", })
|
||||
this.setState({ workContext: "settings" })
|
||||
}
|
||||
|
||||
onOpenLayers() {
|
||||
|
|
|
@ -14,10 +14,15 @@ import theme from './theme.js';
|
|||
|
||||
export class Toolbar extends React.Component {
|
||||
static propTypes = {
|
||||
// A new style has been uploaded
|
||||
onStyleUpload: React.PropTypes.func.isRequired,
|
||||
// Current style is requested for download
|
||||
onStyleDownload: React.PropTypes.func.isRequired,
|
||||
// Style is explicitely saved to local cache
|
||||
onStyleSave: React.PropTypes.func,
|
||||
// Open settings drawer
|
||||
onOpenSettings: React.PropTypes.func,
|
||||
// Open layers drawer
|
||||
onOpenLayers: React.PropTypes.func,
|
||||
// Whether a style is available for download or saving
|
||||
// A style with no layers should not be available
|
||||
|
|
Loading…
Reference in a new issue