diff --git a/frontend/src/Metamaps/GlobalUI/Account.js b/frontend/src/Metamaps/GlobalUI/Account.js index 9ac37906..c06b45fc 100644 --- a/frontend/src/Metamaps/GlobalUI/Account.js +++ b/frontend/src/Metamaps/GlobalUI/Account.js @@ -7,7 +7,6 @@ const Account = { changing: false, init: function() { var self = Account - $('.sidebarAccountIcon').click(self.toggleBox) $('body').click(self.close) }, toggleBox: function(event) { diff --git a/frontend/src/Metamaps/GlobalUI/ReactApp.js b/frontend/src/Metamaps/GlobalUI/ReactApp.js index a789d846..2a32001f 100644 --- a/frontend/src/Metamaps/GlobalUI/ReactApp.js +++ b/frontend/src/Metamaps/GlobalUI/ReactApp.js @@ -7,6 +7,7 @@ import { merge } from 'lodash' import { notifyUser } from './index.js' import ImportDialog from './ImportDialog' +import Account from './Account' import Active from '../Active' import DataModel from '../DataModel' import { ExploreMaps, ChatView, TopicCard } from '../Views' @@ -86,7 +87,8 @@ const ReactApp = { mobileTitle: self.mobileTitle, mobileTitleWidth: self.mobileTitleWidth, mobileTitleClick: (e) => Active.Map && InfoBox.toggleBox(e), - openInviteLightbox: () => self.openLightbox('invite') + openInviteLightbox: () => self.openLightbox('invite'), + toggleAccountBox: Account.toggleBox }, self.getMapProps(), self.getTopicProps(), diff --git a/frontend/src/components/App/UpperRightUI.js b/frontend/src/components/App/UpperRightUI.js index ec198e52..2fe72e29 100644 --- a/frontend/src/components/App/UpperRightUI.js +++ b/frontend/src/components/App/UpperRightUI.js @@ -9,7 +9,8 @@ class UpperRightUI extends Component { currentUser: PropTypes.object, signInPage: PropTypes.bool, unreadNotificationsCount: PropTypes.number, - openInviteLightbox: PropTypes.func + openInviteLightbox: PropTypes.func, + onClickAccount: PropTypes.func } static contextTypes = { @@ -17,7 +18,7 @@ class UpperRightUI extends Component { } render () { - const { currentUser, signInPage, unreadNotificationsCount, openInviteLightbox } = this.props + const { currentUser, signInPage, unreadNotificationsCount, openInviteLightbox, onClickAccount } = this.props return