Skip to content

Commit 8a409a9

Browse files
Merge pull request #8 from PrakashDurlabhji/issue_2435
Issue Fix #10 (old #2435 from community-app)
2 parents a13ad6b + 8aae32c commit 8a409a9

File tree

5 files changed

+28
-24
lines changed

5 files changed

+28
-24
lines changed

dist/dev/index.js

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/prod/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/sass/_global/_variables.scss

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $gray-03: #AAA;
1919
$gray-02: #E0E0E0;
2020
$gray-hover-profile-icon: rgba(85, 85, 85, 0.4);
2121
$gray-neutral-light: #FBFBFB;
22+
$gray-joining-date: #404041;
2223

2324
$turquoise: #43D7B0;
2425
$turquoise-dark: #0AB88A;

src/components/AccountMenu/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import IconAvatar from '../../assets/images/img-vic-tor-avatar.svg'
77
import IconCloseDark from '../../assets/images/icon-close-dark.svg'
88
import IconSwitchBusiness from '../../assets/images/icon-switch-business.svg'
99
import styles from './styles.module.scss'
10+
import moment from 'moment'
1011

1112
class AccountMenu extends React.Component {
1213
renderLink (menu, i) {
@@ -57,7 +58,7 @@ class AccountMenu extends React.Component {
5758
}
5859
<div className={styles['handle-container']}>
5960
<span className={styles['handle']}>@{_.isEmpty(profile) ? '' : profile.handle}</span>
60-
<span className={styles['description']}>{_.isEmpty(profile) ? '' : profile.description}</span>
61+
<span className={styles['description']}>{_.isEmpty(profile) ? '' : `Member since ${moment(profile.createdAt).format('MMMM, YYYY')}`}</span>
6162
</div>
6263
</div>
6364
<span role='button' className={styles['icon-close']} onClick={onClose}>

src/components/AccountMenu/styles.module.scss

+2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@
169169
}
170170

171171
.description {
172+
@include Roboto-Regular;
172173
font-size: 12px;
174+
color: $gray-joining-date;
173175
}
174176
}
175177

0 commit comments

Comments
 (0)