Questionnaire Bug Fixed

main
Pedram Keshavarzi 3 years ago
parent 05e898b61e
commit 2f54137fa6
  1. 26
      src/redux/reducers/exam.js
  2. 29
      src/view/addExam/components/question.js
  3. 2
      src/view/addExam/views/addQuestionnaireExam.js

@ -59,28 +59,28 @@ const initialState = {
{ {
questionId: 1, questionId: 1,
courseId: 2, courseId: 2,
title:'asdaw dsfsdfiermc', title:'تترا فلورید اسید چنتا اسید داره؟',
answeredPercentage: '83%', answeredPercentage: '83%',
score: 1, score: 1,
options: [ options: [
{ {
id: 1, id: 1,
title:'asdasd', title:'تترا',
isAnswer: false isAnswer: false
}, },
{ {
id: 2, id: 2,
title:'asdasd2', title:'سه ترا',
isAnswer: false isAnswer: false
}, },
{ {
id: 3, id: 3,
title:'asdasd3', title:'هویج و گوجه فرنگی؟',
isAnswer: true isAnswer: true
}, },
{ {
id: 4, id: 4,
title:'asdasd4', title:'فلور تا',
isAnswer: false isAnswer: false
}, },
] ]
@ -104,7 +104,7 @@ const initialState = {
}, },
{ {
id: 3, id: 3,
title:'asdasd3', title:'',
isAnswer: true isAnswer: true
}, },
{ {
@ -117,29 +117,29 @@ const initialState = {
{ {
questionId: 3, questionId: 3,
courseId: 1, courseId: 1,
title:'asdaw dsfsdfiermc', title:'برای حل مساءل مربوط به مساحت زیر نمودار باید از کدام مبحث ریاضی استفاده کرد؟',
answeredPercentage: '43%', answeredPercentage: '43%',
score: 1, score: 1,
options: [ options: [
{ {
id: 1, id: 1,
title:'asdasd', title:'لگاریتم طبیعی',
isAnswer: false isAnswer: false
}, },
{ {
id: 2, id: 2,
title:'asdasd2', title:'حد و مشتق',
isAnswer: false isAnswer: false
}, },
{ {
id: 3, id: 3,
title:'asdasd3', title:'قدر مطلق',
isAnswer: true isAnswer: false
}, },
{ {
id: 4, id: 4,
title:'asdasd4', title:'نخوندم 🗿',
isAnswer: false isAnswer: true
}, },
] ]
}, },

@ -5,35 +5,6 @@ import React from 'react';
const Question = ({data}) => { 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 = [ const gozine = [
'الف', 'الف',
'ب', 'ب',

@ -274,4 +274,4 @@ const mapStateToProps = (state) => ({
addExamState: state.addExamReduser addExamState: state.addExamReduser
}) })
export default connect(mapStateToProps)(AddQuestionnaireCourse); export default connect(mapStateToProps)(AddQuestionnaireExam);
Loading…
Cancel
Save