0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 17:22:45 +00:00

Unwinding refactored code + corrections.

This commit is contained in:
G.Ambatte
2021-01-22 17:29:26 +13:00
parent da32845dd1
commit 6d219aa701
2 changed files with 17 additions and 11 deletions

View File

@@ -65,7 +65,7 @@ const BrewItem = createClass({
</a>;
},
renderSourceLink : function(){
renderShareLink : function(){
if(!this.props.brew.shareId) return;
let shareLink = this.props.brew.shareId;
@@ -74,7 +74,7 @@ const BrewItem = createClass({
}
return <a href={`/share/${shareLink}`} target='_blank' rel='noopener noreferrer'>
<i className={'fa fa-share-alt' />
<i className='fa fa-share-alt' />
</a>;
},
@@ -87,7 +87,7 @@ const BrewItem = createClass({
}
return <a href={`/download/${shareLink}`}>
<i className={'fa fa-download' />
<i className='fa fa-download' />
</a>;
},