Skip to content

Commit

Permalink
translation changes - survey fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sarithapillai8 committed Apr 12, 2024
1 parent f5c3bda commit c380f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Survey/src/components/SurveyQuestions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1005,11 +1005,11 @@ function Matrix({ x, responses, onResponse, activityId, total,index, idx,startTi
{(x.questions || []).map((question, qindex) => (
<TableRow style={{ borderBottom: "1px solid rgba(224, 224, 224, 1)"}}>
<TableCell className={classes.required} style={{minWidth:"30%", maxWidth:"150px"}}>
<ReactMarkdown children={`${t(question.text)}`+ (!!question.required ? "<span> *</span>" : "")} allowDangerousHtml={true} plugins={[gfm, emoji]} renderers={{ link: LinkRenderer, span: (props) => {
<ReactMarkdown children={`${t(question.text)}`} allowDangerousHtml={true} plugins={[gfm, emoji]} renderers={{ link: LinkRenderer, span: (props) => {
return <sub>{props?.children}</sub>;
}, sup: (props) => {
return <sup>{props.children}</sup>;
}}} />
}}} /> {(!!question.required ? "<span> *</span>" : "")}
</TableCell>
{(Array.isArray(x.options) && (x.options || []).length > 0) ?(
x.type === "list" ||x.type === "boolean" || x.type === "likert" ? (
Expand Down

0 comments on commit c380f6f

Please sign in to comment.