From 147fb997d096ed8d6f4d33c60aa80f11284e72e3 Mon Sep 17 00:00:00 2001 From: WindowsCrashed Date: Sat, 12 Aug 2023 20:20:22 -0300 Subject: [PATCH] update question card with question card field --- .../assessment/components/QuestionCard.tsx | 41 ++++--------------- .../components/QuestionCardField.tsx | 15 +++++++ 2 files changed, 24 insertions(+), 32 deletions(-) create mode 100644 app/javascript/pages/assessment/components/QuestionCardField.tsx diff --git a/app/javascript/pages/assessment/components/QuestionCard.tsx b/app/javascript/pages/assessment/components/QuestionCard.tsx index df8c487..7b1fa6d 100644 --- a/app/javascript/pages/assessment/components/QuestionCard.tsx +++ b/app/javascript/pages/assessment/components/QuestionCard.tsx @@ -1,5 +1,6 @@ import React, { FC, useState } from "react"; import { Button, Card } from "../../../components"; +import { QuestionCardField } from "./QuestionCardField"; interface Props { title: string @@ -35,38 +36,14 @@ export const QuestionCard: FC = ({ title, onAddQuestion, onRemoveQuestion
{!collapsed &&
-
- Grau de Dificuldade: - Média -
-
- Categoria: - Modelagem -
-
- Eixo de Formação: - Infra Sistemas -
-
- Assunto: - Fisica -
-
- Habilidade Cognitiva: - Compreender -
-
- Tipo: - Resposta Multipla -
-
- Autoria: - UNIFESO -
-
- Ano: - 2023 -
+ + + + + + + +
Enunciado:
diff --git a/app/javascript/pages/assessment/components/QuestionCardField.tsx b/app/javascript/pages/assessment/components/QuestionCardField.tsx new file mode 100644 index 0000000..60d7515 --- /dev/null +++ b/app/javascript/pages/assessment/components/QuestionCardField.tsx @@ -0,0 +1,15 @@ +import React, { FC } from "react"; + +interface Props { + label: string, + value: string +} + +export const QuestionCardField: FC = ({ label, value }) => { + return ( +
+ {`${label}: `} + {value} +
+ ) +} \ No newline at end of file