mirror of
https://github.com/maputnik/editor.git
synced 2026-08-27 15:37:27 +00:00
Switch over to tabs
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ export default class App extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onOpenSettings() {
|
onOpenSettings() {
|
||||||
this.setState({ workContext: "settings", })
|
this.setState({ workContext: "settings" })
|
||||||
}
|
}
|
||||||
|
|
||||||
onOpenLayers() {
|
onOpenLayers() {
|
||||||
|
|||||||
@@ -14,10 +14,15 @@ import theme from './theme.js';
|
|||||||
|
|
||||||
export class Toolbar extends React.Component {
|
export class Toolbar extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
|
// A new style has been uploaded
|
||||||
onStyleUpload: React.PropTypes.func.isRequired,
|
onStyleUpload: React.PropTypes.func.isRequired,
|
||||||
|
// Current style is requested for download
|
||||||
onStyleDownload: React.PropTypes.func.isRequired,
|
onStyleDownload: React.PropTypes.func.isRequired,
|
||||||
|
// Style is explicitely saved to local cache
|
||||||
onStyleSave: React.PropTypes.func,
|
onStyleSave: React.PropTypes.func,
|
||||||
|
// Open settings drawer
|
||||||
onOpenSettings: React.PropTypes.func,
|
onOpenSettings: React.PropTypes.func,
|
||||||
|
// Open layers drawer
|
||||||
onOpenLayers: React.PropTypes.func,
|
onOpenLayers: React.PropTypes.func,
|
||||||
// Whether a style is available for download or saving
|
// Whether a style is available for download or saving
|
||||||
// A style with no layers should not be available
|
// A style with no layers should not be available
|
||||||
|
|||||||
Reference in New Issue
Block a user