From dfc6e80437e465bc01b454cf1d6bfdd4d3a70c85 Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Fri, 31 Jul 2015 12:08:36 -0700 Subject: Fixed help text rendering on mobile --- web/react/components/get_link_modal.jsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'web/react/components') diff --git a/web/react/components/get_link_modal.jsx b/web/react/components/get_link_modal.jsx index ab6045d2f..ea22ad0f3 100644 --- a/web/react/components/get_link_modal.jsx +++ b/web/react/components/get_link_modal.jsx @@ -24,13 +24,18 @@ module.exports = React.createClass({ } }, getInitialState: function() { - return { }; + return {copiedLink: false}; }, handleClick: function() { this.setState({copiedLink: true}); }, render: function() { var currentUser = UserStore.getCurrentUser(); + var copyLinkConfirm = null; + + if (this.state.copiedLink) { + copyLinkConfirm =

Link copied to clipboard.

; + } if (currentUser != null) { return ( @@ -49,11 +54,7 @@ module.exports = React.createClass({
- {this.state.copiedLink ? -

Link copied to clipboard.

- : - null - } + {copyLinkConfirm}
-- cgit v1.2.3-1-g7c22