From dee10383b9652faba3e775296e2d1dbba46017af Mon Sep 17 00:00:00 2001 From: Syed Sajjad Hussain Shah Date: Wed, 29 May 2024 13:01:48 +0500 Subject: [PATCH] feat: remove edX-specific code and add by plugin --- src/App.scss | 2 +- .../LearnerDashboardMenu.jsx | 38 ------------------- 2 files changed, 1 insertion(+), 39 deletions(-) diff --git a/src/App.scss b/src/App.scss index 2292f72e7..5eaeed866 100755 --- a/src/App.scss +++ b/src/App.scss @@ -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 { diff --git a/src/containers/LearnerDashboardHeader/LearnerDashboardMenu.jsx b/src/containers/LearnerDashboardHeader/LearnerDashboardMenu.jsx index a24dcafd4..2419c4aee 100644 --- a/src/containers/LearnerDashboardHeader/LearnerDashboardMenu.jsx +++ b/src/containers/LearnerDashboardHeader/LearnerDashboardMenu.jsx @@ -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'; @@ -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)} - - {formatMessage(messages.newAlert)} - - , - onClick: () => { - sendTrackEvent( - 'edx.bi.user.menu.career.clicked', - { category: 'header', label: 'header' }, - ); - }, - }] : []), { type: 'item', href: `${getConfig().ACCOUNT_PROFILE_URL}/u/${authenticatedUser?.username}`,