0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 09:52:41 +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,14 +92,16 @@ 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>; <a href={this.props.brew.webViewLink} target='_blank'>
<img className='googleDriveIcon' src={googleDriveIcon} alt='googleDriveIcon' />
</a>
</span>;
}
return <span title='Google Drive Storage'> return <span title='Homebrewery Storage'>
<a href={this.props.brew.webViewLink} target='_blank'> <img className='homebreweryIcon' src={homebreweryIcon} alt='homebreweryIcon' />
<img className='googleDriveIcon' src={googleDriveIcon} alt='googleDriveIcon' />
</a>
</span>; </span>;
}, },