- (Вы согласны с утверждением?)
- {qa.question}
-
-
+
+ {agreementQuestion.question}
+
+
+
);
-
+
case QuestionType.QuestionPair:
-
- const qp = question as QuestionPair;
+ const pairQuestion = question as QuestionPair;
return (
-
- (Выберите подходящий ответ)
- {qp.statements.map(s=>(
))}
-
+
+ {pairQuestion.statements.map((statement) => (
+
+ ))}
);
-
+
default:
- break;
+ return null;
}
-
-
- return null;
}
-
diff --git a/src/types/survey.ts b/src/types/survey.ts
index cf5b18c..c46e559 100644
--- a/src/types/survey.ts
+++ b/src/types/survey.ts
@@ -32,3 +32,12 @@ export interface AgreementQuestion extends Question{
question: string;
score_variable: number;
}
+
+
+export interface ScoreVariable {
+ id: string;
+ name: string;
+ title: string;
+ description: string;
+ survey: string;
+}
\ No newline at end of file