Introduce style available prop

This commit is contained in:
lukasmartinelli
2016-09-10 14:56:59 +02:00
parent d132c09afc
commit e27b88c6bc
3 changed files with 27 additions and 24 deletions
+1
View File
@@ -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)}