From 78e22b89808c76a9a321915acf928a0dfcdfaaf5 Mon Sep 17 00:00:00 2001 From: Mountler Date: Mon, 9 Dec 2024 13:19:33 +0100 Subject: [PATCH] Fixed display of back button in adaptivity element --- .../AdaptivityElementDialogContainer.tsx | 5 +++-- ...daptivityElementDialogContainer.test.tsx.snap | 16 ++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/Components/Core/Presentation/Adaptivity/AdaptivityElement/UIComponents/AdaptivityElementDialogContainer.tsx b/src/Components/Core/Presentation/Adaptivity/AdaptivityElement/UIComponents/AdaptivityElementDialogContainer.tsx index 9780e28f4..7d2d5875b 100644 --- a/src/Components/Core/Presentation/Adaptivity/AdaptivityElement/UIComponents/AdaptivityElementDialogContainer.tsx +++ b/src/Components/Core/Presentation/Adaptivity/AdaptivityElement/UIComponents/AdaptivityElementDialogContainer.tsx @@ -50,6 +50,7 @@ import { } from "../../../../Domain/LearningElementModels/LearningElementModelTypes"; import { useTranslation } from "react-i18next"; import CloseButton from "~ReactComponents/ReactRelated/ReactBaseComponents/CloseButton"; +import StyledButton from "~ReactComponents/ReactRelated/ReactBaseComponents/StyledButton"; function getNPCImage(model: LearningElementModel, close: boolean): string { switch (model) { @@ -145,12 +146,12 @@ export default function AdaptivityElementDialogContainer({
{!(currentTask === null && currentQuestion === null) && !showAnswerFeedback && ( - {"\u25C0"} - + )} {currentTask === null && currentQuestion === null && ( diff --git a/src/Components/CoreTest/Presentation/Adaptivity/AdaptivityElement/UIComponents/__snapshots__/AdaptivityElementDialogContainer.test.tsx.snap b/src/Components/CoreTest/Presentation/Adaptivity/AdaptivityElement/UIComponents/__snapshots__/AdaptivityElementDialogContainer.test.tsx.snap index 1a62d26c2..0a11f22e8 100644 --- a/src/Components/CoreTest/Presentation/Adaptivity/AdaptivityElement/UIComponents/__snapshots__/AdaptivityElementDialogContainer.test.tsx.snap +++ b/src/Components/CoreTest/Presentation/Adaptivity/AdaptivityElement/UIComponents/__snapshots__/AdaptivityElementDialogContainer.test.tsx.snap @@ -99,15 +99,15 @@ exports[`AdaptivityElementDialogContainer should render 1`] = `
- + +