diff --git a/src/course-unit/CourseUnit.jsx b/src/course-unit/CourseUnit.jsx index 80885a61d2..9cc146a71a 100644 --- a/src/course-unit/CourseUnit.jsx +++ b/src/course-unit/CourseUnit.jsx @@ -6,6 +6,7 @@ import { Container, Layout, Stack } from '@openedx/paragon'; import { useIntl, injectIntl } from '@edx/frontend-platform/i18n'; import { DraggableList, ErrorAlert } from '@edx/frontend-lib-content-components'; import { Warning as WarningIcon } from '@openedx/paragon/icons'; +import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable'; import { getProcessingNotification } from '../generic/processing-notification/data/selectors'; import SubHeader from '../generic/sub-header/SubHeader'; @@ -151,21 +152,27 @@ const CourseUnit = ({ courseId }) => { setState={setUnitXBlocks} updateOrder={finalizeXBlockOrder} > - {unitXBlocks.map(({ - name, id, blockType: type, shouldScroll, userPartitionInfo, - }) => ( - - ))} + + {unitXBlocks.map(({ + name, id, blockType: type, shouldScroll, userPartitionInfo, + }) => ( + + ))} +