@@ -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" ;
@@ -72,14 +71,7 @@ const ResolvedSearchButton = (props: ResolvedSearchButtonProps) => {
7271
7372const SearchButtonImpl = (
7473 props : Omit < ButtonProps < typeof UnstyledButton > , "children" > ,
75- ) => (
76- < SearchButtonComponent
77- size = "sm"
78- { ...props }
79- smallScreenContent = { < SearchShortcutText /> }
80- largeScreenContent = { < SearchShortcutText /> }
81- />
82- ) ;
74+ ) => < SearchButtonComponent size = "sm" { ...props } /> ;
8375
8476const useSearchDrawer = ( { feeds, publishers } : ResolvedSearchButtonProps ) => {
8577 const drawer = useDrawer ( ) ;
@@ -133,16 +125,6 @@ const useSearchHotkey = (openSearchDrawer: () => void) => {
133125 } , [ handleKeyDown ] ) ;
134126} ;
135127
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-
146128type SearchDialogContentsProps = ResolvedSearchButtonProps ;
147129
148130const SearchDialogContents = ( {
0 commit comments