diff --git a/src/components/NavBar/SearchBar.tsx b/src/components/NavBar/SearchBar.tsx index 3c84f6ad9b..c2c1fca229 100644 --- a/src/components/NavBar/SearchBar.tsx +++ b/src/components/NavBar/SearchBar.tsx @@ -332,62 +332,64 @@ export const SearchBar = () => { const placeholderText = phase1Flag === NftVariant.Enabled ? t`Search tokens and NFT collections` : t`Search tokens` return ( - - - !isOpen && toggleOpen()} - onClick={() => !isOpen && toggleOpen()} - gap="12" + <> + + - - - - - - - ) => { - !isOpen && toggleOpen() - setSearchValue(event.target.value) - }} - className={styles.searchBarInput} - value={searchValue} - ref={inputRef} - /> - - - - - - - {isOpen && - (debouncedSearchValue.length > 0 && (tokensAreLoading || collectionsAreLoading) ? ( - - ) : ( - 0} + !isOpen && toggleOpen()} + onClick={() => !isOpen && toggleOpen()} + gap="12" + > + + + + + + + ) => { + !isOpen && toggleOpen() + setSearchValue(event.target.value) + }} + className={styles.searchBarInput} + value={searchValue} + ref={inputRef} /> - ))} + + + + + + + {isOpen && + (debouncedSearchValue.length > 0 && (tokensAreLoading || collectionsAreLoading) ? ( + + ) : ( + 0} + /> + ))} + {isOpen && } - + ) }