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 dee1038
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 39 deletions.
2 changes: 1 addition & 1 deletion src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $fa-font-path: "~font-awesome/fonts";

$input-focus-box-shadow: $input-box-shadow; // hack to get upgrade to paragon 4.0.0 to work

@import "~@edx/frontend-component-header/dist/index";
@import "@edx/frontend-component-header/dist/index";
@import "~@edx/frontend-component-footer/dist/_footer";

.text-ellipsis {
Expand Down
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 dee1038

Please sign in to comment.