0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 18:32:40 +00:00

Shift check to presence of this.props.brew.shareId. Revert changes to Homebrew.jsx.

This commit is contained in:
Sean Robertson
2021-07-28 15:37:36 +12:00
parent 189fdb4555
commit fa5bd92406
2 changed files with 4 additions and 6 deletions

View File

@@ -25,9 +25,7 @@ const SharePage = createClass({
updatedAt : null,
views : 0,
renderer : ''
},
showSource : true,
showPrint : true
}
};
},
@@ -82,12 +80,12 @@ const SharePage = createClass({
},
renderPrint : function(){
if(!this.state.showPrint) return;
if(!this.props.brew.shareId) return;
return <PrintLink shareId={this.processShareId()} />;
},
renderSourceDropdown : function(){
if(!this.state.showSource) return;
if(!this.props.brew.shareId) return;
return <Nav.item icon='fas fa-code' color='red' className='source'
onMouseEnter={()=>this.handleDropdown(true)}
onMouseLeave={()=>this.handleDropdown(false)}>