* feat: remove waffle flags for managing course outline sidebar * fix: flag and tests * fix: product-tours tests * fix: remove default content for SequenceNavigationSlot and update tests * fix: remove default content for CourseBreadcrumbsSlot * fix: update plugin-slots version and documentation * revert: update plugin-slots version * fix: update tests
31 lines
621 B
TypeScript
31 lines
621 B
TypeScript
import React from 'react';
|
|
|
|
import { PluginSlot } from '@openedx/frontend-plugin-framework';
|
|
|
|
interface Props {
|
|
courseId: string;
|
|
sectionId?: string;
|
|
sequenceId?: string;
|
|
unitId?: string;
|
|
isStaff?: boolean;
|
|
}
|
|
|
|
export const CourseBreadcrumbsSlot : React.FC<Props> = ({
|
|
courseId, sectionId, sequenceId, unitId, isStaff,
|
|
}) => (
|
|
<PluginSlot
|
|
id="org.openedx.frontend.learning.course_breadcrumbs.v1"
|
|
idAliases={['course_breadcrumbs_slot']}
|
|
slotOptions={{
|
|
mergeProps: true,
|
|
}}
|
|
pluginProps={{
|
|
courseId,
|
|
sectionId,
|
|
sequenceId,
|
|
unitId,
|
|
isStaff,
|
|
}}
|
|
/>
|
|
);
|