|
|
@ -7,8 +7,8 @@ import { useQuestionComponent } from "../components/questionnaire/QuestionnaireD |
|
|
|
export default function TestQuestionnaire() { |
|
|
|
const { id } = useParams() |
|
|
|
|
|
|
|
const q1Props = useQuestionComponent("checkbox", 4, "Lorem Ipsum", "./info", "./q2"); |
|
|
|
const q2Props = useQuestionComponent("slider", 8, "Lorem Ipsum Ye", "./q1", "./info"); |
|
|
|
const q1Props = useQuestionComponent("checkbox", 4, "Lorem Ipsum", "/info", "./q2"); |
|
|
|
const q2Props = useQuestionComponent("slider", 8, "Lorem Ipsum Ye", "./q1", "/info"); |
|
|
|
|
|
|
|
const questionProperties = {"q1": q1Props, "q2": q2Props}; |
|
|
|
const questionProperty = questionProperties[id]; |
|
|
|