add questions query

This commit is contained in:
WindowsCrashed
2023-08-25 22:33:33 -03:00
parent 147fb997d0
commit 230a59e999
4 changed files with 78 additions and 25 deletions

View File

@@ -1,15 +1,16 @@
import React, { FC } from "react";
import { Maybe } from "../../../__generated__/graphql-schema";
interface Props {
label: string,
value: string
value?: Maybe<string>
}
export const QuestionCardField: FC<Props> = ({ label, value }) => {
return (
<div>
<span className="text-gray-700">{`${label}: `}</span>
<span>{value}</span>
<span>{value ?? ''}</span>
</div>
)
}