mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 21:32:42 +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){
|
renderButton : function(name, key, shouldRender=true){
|
||||||
if(!condition) return;
|
if(!shouldRender) return;
|
||||||
return <button className={this.state.saveLocation==key ? 'active' : ''} onClick={()=>{this.makeActive(key);}}>{name}</button>;
|
return <button className={this.state.saveLocation==key ? 'active' : ''} onClick={()=>{this.makeActive(key);}}>{name}</button>;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user