0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-18 01:22:43 +00:00

Shift HomePage to use a minimal brew

This commit is contained in:
G.Ambatte
2021-07-29 19:00:26 +12:00
parent 7fa1e16b5a
commit fdfea36614
3 changed files with 14 additions and 12 deletions

View File

@@ -23,17 +23,15 @@ const HomePage = createClass({
getDefaultProps : function() {
return {
brew : {
text : ''
text : '',
welcomeText : ''
},
welcomeText : '',
ver : '0.0.0'
ver : '0.0.0'
};
},
getInitialState : function() {
return {
brew : {
text : this.props.welcomeText
}
brew : this.props.brew
};
},
handleSave : function(){
@@ -87,7 +85,7 @@ const HomePage = createClass({
</SplitPane>
</div>
<div className={cx('floatingSaveButton', { show: this.props.welcomeText != this.state.brew.text })} onClick={this.handleSave}>
<div className={cx('floatingSaveButton', { show: this.props.brew.welcomeText != this.state.brew.text })} onClick={this.handleSave}>
Save current <i className='fas fa-save' />
</div>