mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 22:52:40 +00:00
Rename renderButton visibility control parameter
This commit is contained in:
@@ -48,8 +48,8 @@ const AccountPage = createClass({
|
||||
});
|
||||
},
|
||||
|
||||
renderButton : function(name, key, condition=true){
|
||||
if(!condition) return;
|
||||
renderButton : function(name, key, shouldRender=true){
|
||||
if(!shouldRender) return;
|
||||
return <button className={this.state.saveLocation==key ? 'active' : ''} onClick={()=>{this.makeActive(key);}}>{name}</button>;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user