mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Merge branch 'JubaAzul/issue200' of https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir into JubaAzul/issue200
This commit is contained in:
commit
2b7ea55f9c
2 changed files with 4 additions and 4 deletions
|
|
@ -13,6 +13,7 @@ interface Props {
|
||||||
}
|
}
|
||||||
|
|
||||||
const ShortAnswerQuestionDisplay: React.FC<Props> = (props) => {
|
const ShortAnswerQuestionDisplay: React.FC<Props> = (props) => {
|
||||||
|
|
||||||
const { question, showAnswer, handleOnSubmitAnswer, passedAnswer } = props;
|
const { question, showAnswer, handleOnSubmitAnswer, passedAnswer } = props;
|
||||||
const [answer, setAnswer] = useState<string | number | boolean>(passedAnswer || '');
|
const [answer, setAnswer] = useState<string | number | boolean>(passedAnswer || '');
|
||||||
|
|
||||||
|
|
@ -21,6 +22,7 @@ const ShortAnswerQuestionDisplay: React.FC<Props> = (props) => {
|
||||||
setAnswer(passedAnswer);
|
setAnswer(passedAnswer);
|
||||||
}
|
}
|
||||||
}, [passedAnswer]);
|
}, [passedAnswer]);
|
||||||
|
console.log("Answer" , answer);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="question-wrapper">
|
<div className="question-wrapper">
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ const TeacherModeQuiz: React.FC<TeacherModeQuizProps> = ({
|
||||||
const [isFeedbackDialogOpen, setIsFeedbackDialogOpen] = useState(false);
|
const [isFeedbackDialogOpen, setIsFeedbackDialogOpen] = useState(false);
|
||||||
const [answer, setAnswer] = useState<string | number | boolean>('');
|
const [answer, setAnswer] = useState<string | number | boolean>('');
|
||||||
|
|
||||||
console.log("Answer" , answer);
|
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Close the feedback dialog when the question changes
|
// Close the feedback dialog when the question changes
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue