diff --git a/src/short-urls/ShortUrlsList.js b/src/short-urls/ShortUrlsList.js index 26a96873..de8ecaef 100644 --- a/src/short-urls/ShortUrlsList.js +++ b/src/short-urls/ShortUrlsList.js @@ -116,14 +116,13 @@ class RowMenu extends React.Component { toggle = () => this.setState({ isOpen: ! this.state.isOpen }); render () { - const determineClass = () => { - const baseClass = 'short-urls-list__dropdown-toggle'; - return ! this.props.display ? `${baseClass} short-urls-list__dropdown-toggle--hidden` : baseClass; - }; + const { display, shortUrl, onCopyToClipboard } = this.props; + const baseClass = 'short-urls-list__dropdown-toggle'; + const toggleClass = ! display ? `${baseClass} short-urls-list__dropdown-toggle--hidden` : baseClass; return ( - +    @@ -138,14 +137,11 @@ class RowMenu extends React.Component {  QR code - - -  Copy to clipboard - - - {/**/} - {/*  Copy to clipboard*/} - {/**/} + + +  Copy to clipboard + + );