diff --git a/app/components/Editor.tsx b/app/components/Editor.tsx index 539f34a41b..a674f0367d 100644 --- a/app/components/Editor.tsx +++ b/app/components/Editor.tsx @@ -349,7 +349,6 @@ function Editor(props: Props, ref: React.RefObject | null) { )} {activeLinkElement && !shareId && ( diff --git a/app/components/HoverPreview/HoverPreview.tsx b/app/components/HoverPreview/HoverPreview.tsx index 8ff253edc5..40a1a7077a 100644 --- a/app/components/HoverPreview/HoverPreview.tsx +++ b/app/components/HoverPreview/HoverPreview.tsx @@ -19,15 +19,13 @@ const CARD_PADDING = 16; const CARD_MAX_WIDTH = 375; type Props = { - /* The document associated with the editor, if any */ - id?: string; /* The HTML element that is being hovered over */ element: HTMLAnchorElement; /* A callback on close of the hover preview */ onClose: () => void; }; -function HoverPreviewInternal({ element, id, onClose }: Props) { +function HoverPreviewInternal({ element, onClose }: Props) { const url = element.href || element.dataset.url; const [isVisible, setVisible] = React.useState(false); const timerClose = React.useRef>(); @@ -143,7 +141,7 @@ function HoverPreviewInternal({ element, id, onClose }: Props) { /> ) : data.type === UnfurlType.Document ? (