From 3a3217f2be5093c980d2cc2204eb6f102ea32d2f Mon Sep 17 00:00:00 2001 From: minaxolone Date: Tue, 30 Apr 2024 18:16:58 -0400 Subject: [PATCH] add search bar --- .../src/modules/ui/Layout/Header/Header.tsx | 61 ++++++++++--------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/web-app/src/modules/ui/Layout/Header/Header.tsx b/web-app/src/modules/ui/Layout/Header/Header.tsx index 2f1ba67..65a7eec 100644 --- a/web-app/src/modules/ui/Layout/Header/Header.tsx +++ b/web-app/src/modules/ui/Layout/Header/Header.tsx @@ -1,10 +1,12 @@ +import React, { useRef, useState } from 'react'; +import { Link, NavLink, useNavigate } from 'react-router-dom'; import { Bars3Icon } from '@heroicons/react/20/solid'; +import { MagnifyingGlassIcon } from '@heroicons/react/20/solid'; import clsx from 'clsx'; -import React, { useState } from 'react'; -import { Link, NavLink } from 'react-router-dom'; -/* import { useWallet } from '@aptos-labs/wallet-adapter-react'; +import { useWallet } from '@aptos-labs/wallet-adapter-react'; + import { PosteroWalletName } from '../../../postero-wallet'; -import { normalizeAddress } from '../../../../utils'; */ +import { normalizeAddress } from '../../../../utils'; import Logo from '../../Logo/Logo'; const navigation = [ @@ -18,7 +20,7 @@ const navigation = [ const Header: React.FC = () => { const [menuIsOpen, setMenuIsOpen] = useState(false); - /* const aptosWallet = useWallet(); + const aptosWallet = useWallet(); const navigate = useNavigate(); const [searchAddress, setSearchAddress] = useState(''); const searchInput = useRef(null); @@ -45,7 +47,7 @@ const Header: React.FC = () => { const sliceHexAddress = (address: string | null) => address ? `${address.slice(0, 5)}...${address.slice(-3)}` : ''; - */ + return (