@@ -8,7 +8,6 @@ import { NoResults } from "@pythnetwork/component-library/NoResults";
88import { SearchButton as SearchButtonComponent } from "@pythnetwork/component-library/SearchButton" ;
99import { SearchInput } from "@pythnetwork/component-library/SearchInput" ;
1010import { SingleToggleGroup } from "@pythnetwork/component-library/SingleToggleGroup" ;
11- import { Skeleton } from "@pythnetwork/component-library/Skeleton" ;
1211import {
1312 ListLayout ,
1413 Virtualizer ,
@@ -22,7 +21,7 @@ import { useDrawer } from "@pythnetwork/component-library/useDrawer";
2221import { useLogger } from "@pythnetwork/component-library/useLogger" ;
2322import type { ReactNode } from "react" ;
2423import { useCallback , useEffect , useMemo , useState } from "react" ;
25- import { useCollator , useFilter , useIsSSR } from "react-aria" ;
24+ import { useCollator , useFilter } from "react-aria" ;
2625
2726import { Cluster , ClusterToName } from "../../services/pyth" ;
2827import { AssetClassBadge } from "../AssetClassBadge" ;
@@ -76,8 +75,6 @@ const SearchButtonImpl = (
7675 < SearchButtonComponent
7776 size = "sm"
7877 { ...props }
79- smallScreenContent = { < SearchShortcutText /> }
80- largeScreenContent = { < SearchShortcutText /> }
8178 />
8279) ;
8380
@@ -133,16 +130,6 @@ const useSearchHotkey = (openSearchDrawer: () => void) => {
133130 } , [ handleKeyDown ] ) ;
134131} ;
135132
136- const SearchShortcutText = ( ) => {
137- const isSSR = useIsSSR ( ) ;
138- return isSSR ? < Skeleton width = { 7 } /> : < SearchTextImpl /> ;
139- } ;
140-
141- const SearchTextImpl = ( ) => {
142- const isMac = useMemo ( ( ) => navigator . userAgent . includes ( "Mac" ) , [ ] ) ;
143- return isMac ? "⌘ K" : "Ctrl K" ;
144- } ;
145-
146133type SearchDialogContentsProps = ResolvedSearchButtonProps ;
147134
148135const SearchDialogContents = ( {
0 commit comments