0
0
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:
Sean Robertson
2023-08-11 11:56:45 +12:00
parent 1729b13574
commit 7feaa51de0

View File

@@ -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>;
},