Skip to content

Commit

Permalink
add link
Browse files Browse the repository at this point in the history
  • Loading branch information
carlagn committed Apr 2, 2024
1 parent e0e1525 commit 04a779b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme/MDXComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const StyledLink: React.FC<React.PropsWithChildren> = ({ children, ...props }) =
//@ts-ignore
const url = props && props?.href
if (url?.includes("prisma.io/") || url?.charAt(0) === "/")
return <Link {...props} />
return <Link {...props}>{children}</Link>
else
return <a {...props} target='_blank' rel='openeer noreferrer'>
{children}
Expand Down

0 comments on commit 04a779b

Please sign in to comment.