@@ -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 ,
@@ -23,7 +22,7 @@ import { useLogger } from "@pythnetwork/component-library/useLogger";
2322import { matchSorter } from "match-sorter" ;
2423import type { ReactNode } from "react" ;
2524import { useCallback , useEffect , useMemo , useState } from "react" ;
26- import { useCollator , useFilter , useIsSSR } from "react-aria" ;
25+ import { useCollator , useFilter } from "react-aria" ;
2726
2827import { Cluster , ClusterToName } from "../../services/pyth" ;
2928import { AssetClassBadge } from "../AssetClassBadge" ;
@@ -74,14 +73,7 @@ const ResolvedSearchButton = (props: ResolvedSearchButtonProps) => {
7473
7574const SearchButtonImpl = (
7675 props : Omit < ButtonProps < typeof UnstyledButton > , "children" > ,
77- ) => (
78- < SearchButtonComponent
79- size = "sm"
80- { ...props }
81- smallScreenContent = { < SearchShortcutText /> }
82- largeScreenContent = { < SearchShortcutText /> }
83- />
84- ) ;
76+ ) => < SearchButtonComponent size = "sm" { ...props } /> ;
8577
8678const useSearchDrawer = ( { feeds, publishers } : ResolvedSearchButtonProps ) => {
8779 const drawer = useDrawer ( ) ;
@@ -135,16 +127,6 @@ const useSearchHotkey = (openSearchDrawer: () => void) => {
135127 } , [ handleKeyDown ] ) ;
136128} ;
137129
138- const SearchShortcutText = ( ) => {
139- const isSSR = useIsSSR ( ) ;
140- return isSSR ? < Skeleton width = { 7 } /> : < SearchTextImpl /> ;
141- } ;
142-
143- const SearchTextImpl = ( ) => {
144- const isMac = useMemo ( ( ) => navigator . userAgent . includes ( "Mac" ) , [ ] ) ;
145- return isMac ? "⌘ K" : "Ctrl K" ;
146- } ;
147-
148130type SearchDialogContentsProps = ResolvedSearchButtonProps ;
149131
150132const SearchDialogContents = ( {
0 commit comments