0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-16 23:22:40 +00:00

Reverse StorageIcons logic

This commit is contained in:
G.Ambatte
2023-08-10 16:46:45 +12:00
parent d28e85209e
commit 38f6929c1d

View File

@@ -92,15 +92,17 @@ const BrewItem = createClass({
}, },
renderStorageIcon : function(){ renderStorageIcon : function(){
if(!this.props.brew.googleId) return <span title='Internal Homebrewery Database'> if(this.props.brew.googleId) {
<img className='homebreweryIcon' src={homebreweryIcon} alt='homebreweryIcon' /> return <span title={this.props.brew.webViewLink ? 'Your Google Drive Storage': 'Another User\'s Google Drive Storage'}>
</span>;
return <span title='Google Drive Storage'>
<a href={this.props.brew.webViewLink} target='_blank'> <a href={this.props.brew.webViewLink} target='_blank'>
<img className='googleDriveIcon' src={googleDriveIcon} alt='googleDriveIcon' /> <img className='googleDriveIcon' src={googleDriveIcon} alt='googleDriveIcon' />
</a> </a>
</span>; </span>;
}
return <span title='Homebrewery Storage'>
<img className='homebreweryIcon' src={homebreweryIcon} alt='homebreweryIcon' />
</span>;
}, },
render : function(){ render : function(){