Page MenuHomePhabricator

D7194.diff
No OneTemporary

D7194.diff

diff --git a/web/settings/account-settings.css b/web/settings/account-settings.css
--- a/web/settings/account-settings.css
+++ b/web/settings/account-settings.css
@@ -10,6 +10,10 @@
padding-bottom: 55px;
}
+.content {
+ margin-top: 32px;
+}
+
.content ul {
list-style-type: none;
}
diff --git a/web/settings/account-settings.react.js b/web/settings/account-settings.react.js
--- a/web/settings/account-settings.react.js
+++ b/web/settings/account-settings.react.js
@@ -18,6 +18,7 @@
import BlockListModal from './relationship/block-list-modal.react.js';
import FriendListModal from './relationship/friend-list-modal.react.js';
import Button from '../components/button.react.js';
+import UserAvatar from '../components/user-avatar.react.js';
import { useSelector } from '../redux/redux-utils.js';
function AccountSettings(): React.Node {
@@ -55,6 +56,7 @@
const currentUserInfo = useSelector(state => state.currentUserInfo);
const stringForUser = useStringForUser(currentUserInfo);
+
if (!currentUserInfo || currentUserInfo.anonymous) {
return null;
}
@@ -77,6 +79,7 @@
return (
<div className={css.container}>
<h4 className={css.header}>My Account</h4>
+ <UserAvatar size="profile" userID={currentUserInfo.id} />
<div className={css.content}>
<ul>
<li>

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 10, 2:36 PM (15 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2851448
Default Alt Text
D7194.diff (1 KB)

Event Timeline