diff --git a/web/components/site-link.tsx b/web/components/site-link.tsx index f3c187ef..b4e840cc 100644 --- a/web/components/site-link.tsx +++ b/web/components/site-link.tsx @@ -9,24 +9,8 @@ export const SiteLink = (props: { }) => { const { href, children, onClick, className } = props - return href.startsWith('http') ? ( - { - e.stopPropagation() - if (onClick) onClick() - }} - > - {children} - - ) : ( - + return ( + {children} - + + ) +} + +function MaybeLink(props: { href: string; children: React.ReactNode }) { + const { href, children } = props + return href.startsWith('http') ? ( + <>{children} + ) : ( + {children} ) }