Switch over to tabs

This commit is contained in:
lukasmartinelli 2016-09-10 15:15:17 +02:00
parent e27b88c6bc
commit 0e65ac8937
10 changed files with 80 additions and 75 deletions

View file

@ -56,7 +56,7 @@ export default class App extends React.Component {
} }
onOpenSettings() { onOpenSettings() {
this.setState({ workContext: "settings", }) this.setState({ workContext: "settings" })
} }
onOpenLayers() { onOpenLayers() {

View file

View file

@ -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