0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Shorten logic

This commit is contained in:
Trevor Buckner
2023-04-10 10:45:30 -04:00
parent 4ddee3c2f1
commit 8b8388391c

View File

@@ -29,7 +29,7 @@ const Nav = {
section : createClass({
displayName : 'Nav.section',
render : function(){
return <div className={this.props.className ? `navSection ${this.props.className}` : 'navSection'}>
return <div className={`navSection ${this.props.className ?? ''}`}>
{this.props.children}
</div>;
}