Skip to content

Commit

Permalink
feat: [#188283234] Enable contextual info in non essential questions
Browse files Browse the repository at this point in the history
  • Loading branch information
sirsamueljoseph authored and SirSamuelJoseph committed Sep 20, 2024
1 parent c778661 commit 1e7d8b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions content/src/roadmaps/nonEssentialQuestions.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
{
"id": "freestanding-residential-health-care-license",
"questionText": "Do you plan to own and/or operate a free-standing residential health care facility?",
"questionText": "Do you plan to own and/or operate a `free-standing residential health care facility?|residential-health-care-facility`",
"addOn": "healthcare-freestanding-facility-license"
},
{
Expand All @@ -66,4 +66,4 @@
"id": "electrologist"
}
]
}
}
2 changes: 1 addition & 1 deletion web/public/mgmt/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1988,7 +1988,7 @@ collections:
widget: string
- label: Question
name: questionText
widget: string
widget: markdown
- label: Add On
name: addOn
widget: "relation"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Content } from "@/components/Content";
import { ProfileDataContext } from "@/contexts/profileDataContext";
import { useConfig } from "@/lib/data-hooks/useConfig";
import { getNonEssentialQuestionText } from "@/lib/domain-logic/getNonEssentialQuestionText";
Expand Down Expand Up @@ -28,7 +29,9 @@ export const NonEssentialQuestion = (props: Props): ReactElement => {
{nonEssentialQuestionText && (
<>
<div className={"margin-top-2"}>
<span className={"text-bold"}>{nonEssentialQuestionText}</span>
<div className={"text-bold"}>
<Content>{nonEssentialQuestionText}</Content>
</div>
<span className={"margin-left-05"}>
{Config.profileDefaults.fields.nonEssentialQuestions.default.optionalText}
</span>
Expand Down

0 comments on commit 1e7d8b9

Please sign in to comment.