- {choices.map((choice) => (
-
- {choice.text.text}
+ {question.choices.map((choice) => (
+
+ {choice.text}
))}
- {globalFeedback &&
{globalFeedback}
}
+ {question.formattedGlobalFeedback &&
}
>
) : (
<>
{
setAnswer(e.target.value);
}}
disabled={showAnswer}
- inputProps={{ 'data-testid': 'text-input' }}
+ aria-label="short-answer-input"
/>
{handleOnSubmitAnswer && (
@@ -75,4 +66,4 @@ const ShortAnswerQuestion: React.FC
= (props) => {
);
};
-export default ShortAnswerQuestion;
+export default ShortAnswerQuestionDisplay;
diff --git a/client/src/components/Questions/TrueFalseQuestion/TrueFalseQuestion.tsx b/client/src/components/Questions/TrueFalseQuestion/TrueFalseQuestion.tsx
index 18b7038..dd5b3e8 100644
--- a/client/src/components/Questions/TrueFalseQuestion/TrueFalseQuestion.tsx
+++ b/client/src/components/Questions/TrueFalseQuestion/TrueFalseQuestion.tsx
@@ -2,8 +2,8 @@
import React, { useState, useEffect } from 'react';
import '../questionStyle.css';
import { Button } from '@mui/material';
-import textType from '../../GiftTemplate/templates/TextType';
-import { TextFormat } from '../../GiftTemplate/templates/types';
+import { textType } from '../../GiftTemplate/templates/TextType';
+import { TextFormat } from 'gift-pegjs';
import DOMPurify from 'dompurify';
interface Props {