mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 05:47:02 +00:00
Rename renderButton visibility control parameter
This commit is contained in:
1 parent
1729b13574
commit
7feaa51de0
1 file changed
+2
-2
@@ -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