From 828b1f48377e8ff23c723b1e18829ae09fc339a0 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 15 Jan 2016 12:35:30 +0000 Subject: [PATCH] fix up look and feel of UserSettings a bit more --- src/components/structures/UserSettings.js | 25 ++++++++++++++--------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index ddf4229170..def215ceb3 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -83,6 +83,12 @@ module.exports = React.createClass({ } }, + onAvatarPickerClick: function(ev) { + if (this.refs.file_label) { + this.refs.file_label.click(); + } + }, + onAvatarSelected: function(ev) { var self = this; var changeAvatar = this.refs.changeAvatar; @@ -175,7 +181,7 @@ module.exports = React.createClass({ if (MatrixClientPeg.get().isGuest()) { accountJsx = (
- Upgrade (It's free!) + Create an account
); } @@ -224,14 +230,14 @@ module.exports = React.createClass({ })} -
+
-
@@ -241,13 +247,12 @@ module.exports = React.createClass({

Account

- {accountJsx} -
- -
-
+ +
Log out
+ + {accountJsx}

Notifications