Skip to content

Commit

Permalink
fix: fix cta sections with no link
Browse files Browse the repository at this point in the history
  • Loading branch information
jeangovil committed Jun 2, 2023
1 parent a75c639 commit 7bda975
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ export const CallToActionSection: React.FC<CallToActionSectionProps> = ({
{description}
</Typography>
)}
<CallToActionButton
target={target}
href={href}
className="mdx-cta-section__link"
>
{label}
</CallToActionButton>
{href && (
<CallToActionButton
target={target}
href={href}
className="mdx-cta-section__link"
>
{label}
</CallToActionButton>
)}
</div>
)
}

0 comments on commit 7bda975

Please sign in to comment.