Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
joyponader authored Jul 10, 2024
1 parent ff7f607 commit 841637f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ export const Hero = ({
</div>
)}
{/* see https://legacy.reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml and https://blog.logrocket.com/using-dangerouslysetinnerhtml-react-application/ */}
{
heroHTML && (
<div
className={s.heroHTMLContainer}
dangerouslySetInnerHTML={{ __html: heroHTML }}
/>
)}
{heroHTML && (
<div
className={s.heroHTMLContainer}
dangerouslySetInnerHTML={{ __html: heroHTML }}
/>
)}
{heroTitle && <h1 className={cN(s.title, s.titles)}>{heroTitle}</h1>}
{heroSubTitle && (
<h3 className={cN(s.subTitle, s.titles)}>{heroSubTitle}</h3>
Expand Down

0 comments on commit 841637f

Please sign in to comment.