@@ -3,15 +3,16 @@ import PropTypes from 'prop-types';
3
3
4
4
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
5
5
import { faUserCircle } from '@fortawesome/free-solid-svg-icons' ;
6
+
6
7
import { getConfig } from '@edx/frontend-platform' ;
7
8
import { injectIntl , intlShape } from '@edx/frontend-platform/i18n' ;
8
9
import { Dropdown } from '@openedx/paragon' ;
9
10
10
11
import messages from './messages' ;
11
12
12
- const AuthenticatedUserDropdown = ( { intl, username } ) => {
13
+ const AuthenticatedUserDropdown = ( { intl, name } ) => {
13
14
const dashboardMenuItem = (
14
- < Dropdown . Item href = { `${ getConfig ( ) . LMS_BASE_URL } /dashboard` } >
15
+ < Dropdown . Item href = { `${ process . env . MARKETING_SITE_BASE_URL } /dashboard` } >
15
16
{ intl . formatMessage ( messages . dashboard ) }
16
17
</ Dropdown . Item >
17
18
) ;
@@ -23,16 +24,16 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
23
24
< Dropdown . Toggle variant = "outline-primary" >
24
25
< FontAwesomeIcon icon = { faUserCircle } className = "d-md-none" size = "lg" />
25
26
< span data-hj-suppress className = "d-none d-md-inline" >
26
- { username }
27
+ { name }
27
28
</ span >
28
29
</ Dropdown . Toggle >
29
30
< Dropdown . Menu className = "dropdown-menu-right" >
30
31
{ dashboardMenuItem }
31
- < Dropdown . Item href = { `${ getConfig ( ) . ACCOUNT_PROFILE_URL } /u/ ${ username } ` } >
32
+ < Dropdown . Item href = { `${ getConfig ( ) . MARKETING_SITE_BASE_URL } /profile/ ` } >
32
33
{ intl . formatMessage ( messages . profile ) }
33
34
</ Dropdown . Item >
34
35
< Dropdown . Item href = { getConfig ( ) . ACCOUNT_SETTINGS_URL } >
35
- { intl . formatMessage ( messages . account ) }
36
+ { intl . formatMessage ( messages . settings ) }
36
37
</ Dropdown . Item >
37
38
{ getConfig ( ) . ORDER_HISTORY_URL && (
38
39
< Dropdown . Item href = { getConfig ( ) . ORDER_HISTORY_URL } >
@@ -50,7 +51,7 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
50
51
51
52
AuthenticatedUserDropdown . propTypes = {
52
53
intl : intlShape . isRequired ,
53
- username : PropTypes . string . isRequired ,
54
+ name : PropTypes . string . isRequired ,
54
55
} ;
55
56
56
57
export default injectIntl ( AuthenticatedUserDropdown ) ;
0 commit comments