mirror of
https://github.com/maputnik/editor.git
synced 2026-09-01 01:47:26 +00:00
Introduce style available prop
This commit is contained in:
@@ -66,6 +66,7 @@ export default class App extends React.Component {
|
||||
render() {
|
||||
return <div style={{ fontFamily: theme.fontFamily, color: theme.color, fontWeight: 300 }}>
|
||||
<Toolbar
|
||||
styleAvailable={this.state.currentStyle.get('layers').size > 0}
|
||||
onStyleSave={this.onStyleSave.bind(this)}
|
||||
onStyleUpload={this.onStyleUpload.bind(this)}
|
||||
onStyleDownload={this.onStyleDownload.bind(this)}
|
||||
|
||||
Reference in New Issue
Block a user