From 25f768cbf33bcda27920d6a76a3ffa15cd54899c Mon Sep 17 00:00:00 2001 From: Steven Hall Date: Mon, 16 Jun 2025 22:41:37 +0100 Subject: [PATCH] Remove tooltip --- .../components/DocumentView/InlineLink.tsx | 45 +++++++------------ 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/packages/gitbook/src/components/DocumentView/InlineLink.tsx b/packages/gitbook/src/components/DocumentView/InlineLink.tsx index f7d08fbbb..fdd3b8134 100644 --- a/packages/gitbook/src/components/DocumentView/InlineLink.tsx +++ b/packages/gitbook/src/components/DocumentView/InlineLink.tsx @@ -1,10 +1,8 @@ import { type DocumentInlineLink, SiteInsightsLinkPosition } from '@gitbook/api'; import { resolveContentRef } from '@/lib/references'; -import { Icon } from '@gitbook/icons'; import { StyledLink } from '../primitives'; import type { InlineProps } from './Inline'; -import { InlineLinkTooltip } from './InlineLinkTooltip'; import { renderInlines } from './Inlines'; export async function InlineLink(props: InlineProps) { @@ -29,33 +27,24 @@ export async function InlineLink(props: InlineProps) { ); } - const isExternal = inline.data.ref.kind === 'url'; return ( - - - {renderInlines({ - context, - document, - nodes: inline.nodes, - ancestorInlines: [...ancestorInlines, inline], - })} - {isExternal ? ( - - ) : null} - - + + {renderInlines({ + context, + document, + nodes: inline.nodes, + ancestorInlines: [...ancestorInlines, inline], + })} + ); }