Skip to content

Commit

Permalink
feat: remove edX-specific code and add by plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsajjadkazmii committed May 29, 2024
1 parent 857447c commit abe8930
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions src/containers/LearnerDashboardHeader/LearnerDashboardMenu.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { sendTrackEvent } from '@edx/frontend-platform/analytics';
import { getConfig } from '@edx/frontend-platform';
import { Badge } from '@openedx/paragon';
import _ from 'lodash';

import urls from 'data/services/lms/urls';

Expand Down Expand Up @@ -43,44 +40,9 @@ const getLearnerHeaderMenu = (
},
],
userMenu: [
...(getConfig().ENABLE_EDX_PERSONAL_DASHBOARD ? [
{
heading: formatMessage(messages.dashboardSwitch),
items: [
{
type: 'item',
href: '/edx-dashboard',
content: formatMessage(messages.dashboardPersonal),
isActive: true,
},
...(!_.isEmpty(dashboard) ? [{
type: 'item',
href: `${dashboard.url}`,
content: `${dashboard.label} ${formatMessage(messages.dashboard)}`,
}] : []),
],
},
] : []),
{
heading: '',
items: [
...(_.isEmpty(dashboard) && getConfig().CAREER_LINK_URL ? [{
type: 'item',
href: `${getConfig().CAREER_LINK_URL}`,
content:
<>
{formatMessage(messages.career)}
<Badge className="px-2 mx-2" variant="warning">
{formatMessage(messages.newAlert)}
</Badge>
</>,
onClick: () => {
sendTrackEvent(
'edx.bi.user.menu.career.clicked',
{ category: 'header', label: 'header' },
);
},
}] : []),
{
type: 'item',
href: `${getConfig().ACCOUNT_PROFILE_URL}/u/${authenticatedUser?.username}`,
Expand Down

0 comments on commit abe8930

Please sign in to comment.