0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 00:52:48 +00:00

Recently viewed and edited seem to be working great

This commit is contained in:
Scott Tolksdorf
2016-05-29 12:50:18 -04:00
parent 63dcbfa388
commit 87af0e8cb7
6 changed files with 171 additions and 13 deletions

View File

@@ -51,12 +51,12 @@ var Nav = {
if(this.props.icon) icon = <i className={'fa ' + this.props.icon} />;
if(this.props.href){
return <a href={this.props.href} className={classes} target={this.props.newTab ? '_blank' : '_self'}>
return <a {...this.props} className={classes} target={this.props.newTab ? '_blank' : '_self'} >
{this.props.children}
{icon}
</a>
}else{
return <div className={classes} onClick={this.handleClick}>
return <div {...this.props} className={classes} onClick={this.handleClick} >
{this.props.children}
{icon}
</div>