From 2ac3a9bf9ecdf9edef0edbfa0cfabf9a6cb59547 Mon Sep 17 00:00:00 2001 From: andrey-canon Date: Mon, 25 Nov 2024 16:08:15 -0500 Subject: [PATCH] feat: add like-dislike component --- src/courseware/course/sequence/Sequence.jsx | 33 +++++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/src/courseware/course/sequence/Sequence.jsx b/src/courseware/course/sequence/Sequence.jsx index 686aea1764..4462d89713 100644 --- a/src/courseware/course/sequence/Sequence.jsx +++ b/src/courseware/course/sequence/Sequence.jsx @@ -9,6 +9,7 @@ import { import { useIntl } from '@edx/frontend-platform/i18n'; import { useSelector } from 'react-redux'; import SequenceExamWrapper from '@edx/frontend-lib-special-exams'; +import { LikeDislikeUnit } from '@edunext/frontend-essentials'; import PageLoading from '@src/generic/PageLoading'; import { useModel } from '@src/generic/model-store'; @@ -147,19 +148,25 @@ const Sequence = ({ const gated = sequence && sequence.gatedContent !== undefined && sequence.gatedContent.gated; const renderUnitNavigation = (isAtTop) => ( - { - logEvent('edx.ui.lms.sequence.previous_selected', 'bottom'); - handlePrevious(); - }} - onClickNext={() => { - logEvent('edx.ui.lms.sequence.next_selected', 'bottom'); - handleNext(); - }} - /> + <> +
+ +
+ + { + logEvent('edx.ui.lms.sequence.previous_selected', 'bottom'); + handlePrevious(); + }} + onClickNext={() => { + logEvent('edx.ui.lms.sequence.next_selected', 'bottom'); + handleNext(); + }} + /> + ); const defaultContent = (