Skip to content

Commit

Permalink
fix: use edspirit header with platform name
Browse files Browse the repository at this point in the history
  • Loading branch information
milad-emami committed May 19, 2024
1 parent 3ae18c7 commit 6d52f9f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/discussions/discussions-home/DiscussionsHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import {
Route, Switch, useLocation, useRouteMatch,
} from 'react-router';

import { LearningHeader as Header } from '@edx/frontend-component-header';
import Header from '@edx/frontend-component-header';

import { Spinner } from '../../components';
import { selectCourseTabs } from '../../components/NavigationBar/data/selectors';
import { ALL_ROUTES, DiscussionProvider, Routes } from '../../data/constants';
import { DiscussionContext } from '../common/context';
import {
Expand Down Expand Up @@ -39,7 +38,6 @@ const DiscussionsHome = () => {
const postEditorVisible = useSelector(selectPostEditorVisible);
const provider = useSelector(selectDiscussionProvider);
const enableInContext = useSelector(selectEnableInContext);
const { courseNumber, courseTitle, org } = useSelector(selectCourseTabs);
const { params: { page } } = useRouteMatch(`${Routes.COMMENTS.PAGE}?`);
const { params } = useRouteMatch(ALL_ROUTES);
const isRedirectToLearners = useShowLearnersTab();
Expand Down Expand Up @@ -72,7 +70,7 @@ const DiscussionsHome = () => {
}}
>
{!enableInContextSidebar && (
<Header courseOrg={org} courseNumber={courseNumber} courseTitle={courseTitle} />
<Header mfeTitle="discussions.page.title" />
)}
<main className="container-fluid d-flex flex-column p-0 w-100" id="main" tabIndex="-1">
{!enableInContextSidebar && <CourseTabsNavigation activeTab="discussion" courseId={courseId} />}
Expand Down

0 comments on commit 6d52f9f

Please sign in to comment.