From 2f54137fa62ff3c28cc4ea83f729e0f20af006c1 Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Tue, 1 Mar 2022 19:17:16 +0330 Subject: [PATCH] Questionnaire Bug Fixed --- src/redux/reducers/exam.js | 26 ++++++++--------- src/view/addExam/components/question.js | 29 ------------------- .../addExam/views/addQuestionnaireExam.js | 2 +- 3 files changed, 14 insertions(+), 43 deletions(-) diff --git a/src/redux/reducers/exam.js b/src/redux/reducers/exam.js index 07d4c84..179464f 100644 --- a/src/redux/reducers/exam.js +++ b/src/redux/reducers/exam.js @@ -59,28 +59,28 @@ const initialState = { { questionId: 1, courseId: 2, - title:'asdaw dsfsdfiermc', + title:'تترا فلورید اسید چنتا اسید داره؟', answeredPercentage: '83%', score: 1, options: [ { id: 1, - title:'asdasd', + title:'تترا', isAnswer: false }, { id: 2, - title:'asdasd2', + title:'سه ترا', isAnswer: false }, { id: 3, - title:'asdasd3', + title:'هویج و گوجه فرنگی؟', isAnswer: true }, { id: 4, - title:'asdasd4', + title:'فلور تا', isAnswer: false }, ] @@ -104,7 +104,7 @@ const initialState = { }, { id: 3, - title:'asdasd3', + title:'', isAnswer: true }, { @@ -117,29 +117,29 @@ const initialState = { { questionId: 3, courseId: 1, - title:'asdaw dsfsdfiermc', + title:'برای حل مساءل مربوط به مساحت زیر نمودار باید از کدام مبحث ریاضی استفاده کرد؟', answeredPercentage: '43%', score: 1, options: [ { id: 1, - title:'asdasd', + title:'لگاریتم طبیعی', isAnswer: false }, { id: 2, - title:'asdasd2', + title:'حد و مشتق', isAnswer: false }, { id: 3, - title:'asdasd3', - isAnswer: true + title:'قدر مطلق', + isAnswer: false }, { id: 4, - title:'asdasd4', - isAnswer: false + title:'نخوندم 🗿', + isAnswer: true }, ] }, diff --git a/src/view/addExam/components/question.js b/src/view/addExam/components/question.js index a884651..b9a004c 100644 --- a/src/view/addExam/components/question.js +++ b/src/view/addExam/components/question.js @@ -5,35 +5,6 @@ import React from 'react'; const Question = ({data}) => { - // const data = { - // questionId: 1, - // courseId: 2, - // title:'آیا به نظر شما این کار کار درستی است؟', - // answeredPercentage: '13', - // score: 1, - // options: [ - // { - // id: 1, - // title:'بله', - // isAnswer: false - // }, - // { - // id: 2, - // title:'نظر خاصی ندارم', - // isAnswer: false - // }, - // { - // id: 3, - // title:'خیر', - // isAnswer: true - // }, - // { - // id: 4, - // title:'هویج و گوجه فرنگی؟', - // isAnswer: false - // }, - // ] - // }; const gozine = [ 'الف', 'ب', diff --git a/src/view/addExam/views/addQuestionnaireExam.js b/src/view/addExam/views/addQuestionnaireExam.js index 67fa556..ef4bd84 100644 --- a/src/view/addExam/views/addQuestionnaireExam.js +++ b/src/view/addExam/views/addQuestionnaireExam.js @@ -274,4 +274,4 @@ const mapStateToProps = (state) => ({ addExamState: state.addExamReduser }) -export default connect(mapStateToProps)(AddQuestionnaireCourse); \ No newline at end of file +export default connect(mapStateToProps)(AddQuestionnaireExam); \ No newline at end of file