File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { Dropdown } from '@openedx/paragon';
9
9
10
10
import messages from './messages' ;
11
11
12
- const AuthenticatedUserDropdown = ( { intl, username } ) => {
12
+ const AuthenticatedUserDropdown = ( { intl, username, name } ) => {
13
13
const dashboardMenuItem = (
14
14
< Dropdown . Item href = { `${ getConfig ( ) . LMS_BASE_URL } /dashboard` } >
15
15
{ intl . formatMessage ( messages . dashboard ) }
@@ -23,7 +23,7 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
23
23
< Dropdown . Toggle variant = "outline-primary" >
24
24
< FontAwesomeIcon icon = { faUserCircle } className = "d-md-none" size = "lg" />
25
25
< span data-hj-suppress className = "d-none d-md-inline" >
26
- { username }
26
+ { name || username }
27
27
</ span >
28
28
</ Dropdown . Toggle >
29
29
< Dropdown . Menu className = "dropdown-menu-right" >
@@ -51,6 +51,7 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
51
51
AuthenticatedUserDropdown . propTypes = {
52
52
intl : intlShape . isRequired ,
53
53
username : PropTypes . string . isRequired ,
54
+ name : PropTypes . string . isRequired ,
54
55
} ;
55
56
56
57
export default injectIntl ( AuthenticatedUserDropdown ) ;
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ const LearningHeader = ({
51
51
{ showUserDropdown && authenticatedUser && (
52
52
< AuthenticatedUserDropdown
53
53
username = { authenticatedUser . username }
54
+ name = { authenticatedUser . name }
54
55
/>
55
56
) }
56
57
{ showUserDropdown && ! authenticatedUser && (
You can’t perform that action at this time.
0 commit comments