diff --git a/frontend/src/Metamaps/GlobalUI/Account.js b/frontend/src/Metamaps/GlobalUI/Account.js index a2823ef5..9ac37906 100644 --- a/frontend/src/Metamaps/GlobalUI/Account.js +++ b/frontend/src/Metamaps/GlobalUI/Account.js @@ -7,27 +7,19 @@ const Account = { changing: false, init: function() { var self = Account - $('.sidebarAccountIcon').click(self.toggleBox) - $('.sidebarAccountBox').click(function(event) { - event.stopPropagation() - }) $('body').click(self.close) }, toggleBox: function(event) { var self = Account - if (self.isOpen) self.close() else self.open() - event.stopPropagation() }, open: function() { var self = Account - Filter.close() $('.sidebarAccountIcon .tooltipsUnder').addClass('hide') - if (!self.isOpen && !self.changing) { self.changing = true $('.sidebarAccountBox').fadeIn(200, function() { @@ -39,7 +31,6 @@ const Account = { }, close: function() { var self = Account - $('.sidebarAccountIcon .tooltipsUnder').removeClass('hide') if (!self.changing) { self.changing = true diff --git a/frontend/src/Metamaps/GlobalUI/ReactApp.js b/frontend/src/Metamaps/GlobalUI/ReactApp.js index 0b215178..94f5acba 100644 --- a/frontend/src/Metamaps/GlobalUI/ReactApp.js +++ b/frontend/src/Metamaps/GlobalUI/ReactApp.js @@ -76,7 +76,8 @@ const ReactApp = { mobile: self.mobile, mobileTitle: self.mobileTitle, mobileTitleWidth: self.mobileTitleWidth, - mobileTitleClick: (e) => Active.Map && InfoBox.toggleBox(e) + mobileTitleClick: (e) => Active.Map && InfoBox.toggleBox(e), + openInviteLightbox: () => self.openLightbox('invite') }, self.getMapProps(), self.getTopicProps(), diff --git a/frontend/src/components/App/AccountMenu.js b/frontend/src/components/App/AccountMenu.js index d6f2ca9e..d1f772ec 100644 --- a/frontend/src/components/App/AccountMenu.js +++ b/frontend/src/components/App/AccountMenu.js @@ -2,17 +2,19 @@ import React, { Component, PropTypes } from 'react' class AccountMenu extends Component { static propTypes = { - currentUser: PropTypes.object + currentUser: PropTypes.object, + onInviteClick: PropTypes.func } render () { + const { currentUser, onInviteClick } = this.props return
- 11835c3 -

Connor

+ +

{currentUser.get('name')}