Skip to content

Commit

Permalink
fix: add links to preference description (#3813)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrissDrawing authored Jan 16, 2024
1 parent 87288ef commit af18a9b
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,26 @@ const ApplicationMultiselectQuestionStep = ({
}
return null
}
if (question?.links) {
return (
<>
{strings?.subTitle ?? <p>{question?.description}</p>}
<div className="pt-4">
{question.links.map((link) => (
<a
key={link.url}
className="block text-base pt-2 text-blue-500 underline"
href={link.url}
target={"_blank"}
rel="noreferrer noopener"
>
{link.title}
</a>
))}
</div>
</>
)
}
return strings?.subTitle ?? question?.description
}

Expand Down

0 comments on commit af18a9b

Please sign in to comment.