Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/learning-header/LearningHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { getConfig } from '@edx/frontend-platform';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
import { AppContext } from '@edx/frontend-platform/react';
import { ProfileDataModal } from '@edunext/frontend-essentials';
import { ProfileDataModal, LisanAI } from '@edunext/frontend-essentials';

import AnonymousUserMenu from './AnonymousUserMenu';
import AuthenticatedUserDropdown from './AuthenticatedUserDropdown';
Expand Down Expand Up @@ -34,6 +34,7 @@ const LearningHeader = ({
<div className="flex-grow-1 course-title-lockup d-flex" style={{ lineHeight: 1 }}>
<CourseInfoSlot courseOrg={courseOrg} courseNumber={courseNumber} courseTitle={courseTitle} />
</div>
{getConfig().LISAN_AI_ENABLED && (<LisanAI />)}
{showUserDropdown && authenticatedUser && (
<>
<LearningHelpSlot />
Expand Down
4 changes: 3 additions & 1 deletion src/studio-header/StudioHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import Responsive from 'react-responsive';
import { AppContext } from '@edx/frontend-platform/react';
import { ensureConfig } from '@edx/frontend-platform';
import { ensureConfig, getConfig } from '@edx/frontend-platform';
import { LisanAI } from '@edunext/frontend-essentials';

import MobileHeader from './MobileHeader';
import HeaderBody from './HeaderBody';
Expand Down Expand Up @@ -41,6 +42,7 @@ const StudioHeader = ({

return (
<div className="studio-header">
{getConfig().LISAN_AI_ENABLED && (<LisanAI />)}
<a className="nav-skip sr-only sr-only-focusable" href="#main">Skip to content</a>
<Responsive maxWidth={841}>
<MobileHeader {...props} />
Expand Down