From 72d8b5ea1655a981b939891c66eda8b07d095f98 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 28 Jul 2021 17:10:53 +1200 Subject: [PATCH] Linter fixes; correction of condtional JSX element --- client/homebrew/pages/sharePage/sharePage.jsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/client/homebrew/pages/sharePage/sharePage.jsx b/client/homebrew/pages/sharePage/sharePage.jsx index 6c0771a74..3ea1629af 100644 --- a/client/homebrew/pages/sharePage/sharePage.jsx +++ b/client/homebrew/pages/sharePage/sharePage.jsx @@ -88,13 +88,15 @@ const SharePage = createClass({ - {this.props.shareId && - this.handleDropdown(true)} - onMouseLeave={()=>this.handleDropdown(false)}> - source - {this.renderDropdown()} - } + {this.props.shareId && <> + + this.handleDropdown(true)} + onMouseLeave={()=>this.handleDropdown(false)}> + source + {this.renderDropdown()} + + }