diff --git a/src/components/QuickSwitcherDialog.tsx b/src/components/QuickSwitcherDialog.tsx index 90a9100..8dba5a1 100644 --- a/src/components/QuickSwitcherDialog.tsx +++ b/src/components/QuickSwitcherDialog.tsx @@ -7,6 +7,7 @@ import { Menu, MenuItem, Spinner, + Tooltip, } from "@blueprintjs/core"; import React, { useCallback, @@ -22,6 +23,8 @@ import type { } from "~/types/quickSwitcher"; import { filterBookmarks, + getBookmarkRowPresentation, + getBookmarkTargetLabel, getBookmarkTargetType, getBookmarkTargetUid, } from "~/utils/quickSwitcher"; @@ -151,18 +154,6 @@ const getModeFromTabId = ({ tabId: string | number; }): QuickSwitcherDialogMode => (tabId === "manage" ? "manage" : "open"); -const getBookmarkDisplayTitle = ({ - bookmark, -}: { - bookmark: QuickSwitcherBookmark; -}): string => bookmark.alias || bookmark.title; - -const getBookmarkSubtitle = ({ - bookmark, -}: { - bookmark: QuickSwitcherBookmark; -}): string | undefined => (bookmark.alias ? bookmark.title : undefined); - const renderFooterActionContent = ({ label, hotkeys = [], @@ -804,11 +795,9 @@ const QuickSwitcherDialog = ({ const renderRowContent = ({ breadcrumbs = [], - subtitle, title, }: { breadcrumbs?: string[]; - subtitle?: string; title: string; }): React.ReactElement => (