refactor: Update release note component to render extra content as HTML

This commit is contained in:
Mauro Balades
2024-07-14 17:17:20 +02:00
parent 7efb6fa6b2
commit bd61604410
2 changed files with 28 additions and 1 deletions

View File

@@ -13,7 +13,9 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
If you encounter any issues, please report them on <a href="https://github.com/zen-browser/desktop/issues/" className="text-underline text-blue-500">the issues page</a>. Thanks everyone for your feedback!
</p>
{data.extra && (
<p className="text-md mt-8">{data.extra}</p>
<p className="text-md mt-8" dangerouslySetInnerHTML=
{{__html: data.extra.replace(/(\n)/g, "<br />")}}>
</p>
)}
{data.breakingChanges && (
<>