Skip to content

Commit

Permalink
feat: add drupal profile btn
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Faraz Maqsood committed Jul 8, 2024
1 parent e16a0c1 commit e3cba0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/learning-header/AuthenticatedUserDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ const AuthenticatedUserDropdown = ({ intl, username, userProfileImage }) => {
{intl.formatMessage(messages.profile)}
</Dropdown.Item>
)}
{getConfig().ENABLE_DRUPAL_PROFILE_BUTTON && (
<Dropdown.Item href={`${getConfig().DRUPAL_PROFILE_BUTTON_URL}`}>
<span className="drop-icon"><ProfileIcon className="text-primary" /></span>
{intl.formatMessage(messages.profile)}
</Dropdown.Item>
)}
{getConfig().ENABLE_ACCOUNT_BUTTON && (
<Dropdown.Item href={getConfig().ACCOUNT_SETTINGS_URL}>
<span className="drop-icon"><AccountIcon className="text-primary" /></span>
Expand Down

0 comments on commit e3cba0a

Please sign in to comment.