From dd7f6912d2e4bc9d834a09b8c827b8c59eb27961 Mon Sep 17 00:00:00 2001 From: PKulkoRaccoonGang Date: Mon, 29 Apr 2024 15:29:46 +0300 Subject: [PATCH] feat: added alert for successful unit movement --- src/course-unit/CourseUnit.jsx | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/course-unit/CourseUnit.jsx b/src/course-unit/CourseUnit.jsx index dd768f6566..cadcea91b2 100644 --- a/src/course-unit/CourseUnit.jsx +++ b/src/course-unit/CourseUnit.jsx @@ -1,15 +1,15 @@ -import { useEffect, useMemo, useState } from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import { useParams } from 'react-router-dom'; import { - Container, Layout, Stack, Button, + Container, Layout, Stack, Button, TransitionReplace, } from '@openedx/paragon'; import { useIntl, injectIntl } from '@edx/frontend-platform/i18n'; import { Warning as WarningIcon, ArrowDropDown as ArrowDownIcon, - ArrowDropUp as ArrowUpIcon, + ArrowDropUp as ArrowUpIcon, CheckCircle, } from '@openedx/paragon/icons'; import { DraggableList } from '@edx/frontend-lib-content-components'; import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable'; @@ -111,6 +111,25 @@ const CourseUnit = ({ courseId }) => { <>
+ + {true ? ( +