mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-21 11:18:16 +00:00
fix recents
This commit is contained in:
@@ -148,9 +148,9 @@ const RecentItems = createReactClass({
|
||||
return <a className='navItem' href={brew.url} key={`${brew.id}-${i}`} target='_blank' rel='noopener noreferrer' title={brew.title || '[ no title ]'}>
|
||||
<span className='title'>{brew.title || '[ no title ]'}</span>
|
||||
<span className='time'>{Moment(brew.ts).fromNow()}</span>
|
||||
<div className='clear' title='Remove from Recents' onClick={(e)=>{this.removeItem(`${brew.url}`, e);}}><i className='fas fa-times'></i></div>
|
||||
<button className='clear' title='Remove from Recents' onClick={(e)=>{this.removeItem(`${brew.url}`, e);}}><i className='fas fa-times'></i></button>
|
||||
</a>
|
||||
})};
|
||||
})}
|
||||
</div>
|
||||
};
|
||||
|
||||
@@ -167,9 +167,7 @@ const RecentItems = createReactClass({
|
||||
},
|
||||
|
||||
render : function(){
|
||||
return <div className='recent'>
|
||||
{this.renderDropdown()}
|
||||
</div>;
|
||||
return this.renderDropdown()
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user