Skip to content

Commit

Permalink
feat: add report button component
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-canon committed Jan 24, 2024
1 parent 1b427c4 commit 5565025
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/courseware/course/sequence/Sequence.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useSelector } from 'react-redux';
import { history } from '@edx/frontend-platform';
import SequenceExamWrapper from '@edx/frontend-lib-special-exams';
import { breakpoints, useWindowSize } from '@edx/paragon';
import { LikeDislikeUnit } from '@edunext/frontend-essentials';
import { ReportButton, LikeDislikeUnit } from '@edunext/frontend-essentials';

import PageLoading from '../../../generic/PageLoading';
import { useModel } from '../../../generic/model-store';
Expand Down Expand Up @@ -179,6 +179,7 @@ const Sequence = ({
<>
<div className="nelp-container">
<LikeDislikeUnit courseId={courseId} unitId={unitId} />
<ReportButton courseId={courseId} unitId={unitId} />
</div>

<UnitNavigation
Expand Down
5 changes: 5 additions & 0 deletions src/courseware/course/sequence/Sequence.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.nelp-container {
display: flex;
text-align: center;
justify-content: center;
}
1 change: 1 addition & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -381,3 +381,4 @@
@import "course-home/progress-tab/grades/course-grade/GradeBar.scss";
@import "courseware/course/course-exit/CourseRecommendations";
@import "product-tours/newUserCourseHomeTour/NewUserCourseHomeTourModal.scss";
@import "courseware/course/sequence/Sequence.scss";

0 comments on commit 5565025

Please sign in to comment.