@@ -4,7 +4,6 @@ import { useMutation } from '@tanstack/react-query';
44import { useNavigate , useParams } from '@tanstack/react-router' ;
55import { Search } from 'lucide-react' ;
66import { useEffect , useRef , useState } from 'react' ;
7- import { ChainLink } from '@/components/ChainLink' ;
87import { Button } from '@/components/ui/button' ;
98import { Input } from '@/components/ui/input' ;
109import { getIExec , getReadonlyIExec } from '@/externals/iexecSdkClient' ;
@@ -20,7 +19,7 @@ export function SearcherBar({
2019 className ?: string ;
2120 initialSearch ?: string ;
2221} ) {
23- const { isConnected, address : userAddress } = useUserStore ( ) ;
22+ const { isConnected } = useUserStore ( ) ;
2423 const [ inputValue , setInputValue ] = useState ( '' ) ;
2524 const [ shake , setShake ] = useState ( false ) ;
2625 const [ errorCount , setErrorCount ] = useState ( 0 ) ;
@@ -173,17 +172,6 @@ export function SearcherBar({
173172 size = "18"
174173 className = "pointer-events-none absolute top-1/2 left-4 -translate-y-1/2 sm:left-6"
175174 />
176- { isConnected && (
177- < Button
178- variant = "outline"
179- className = "bg-muted hover:bg-secondary absolute top-1/2 right-4 hidden -translate-y-1/2 sm:flex"
180- asChild
181- >
182- < ChainLink to = { `/address/${ userAddress } ?from=my_activity` } >
183- My activity
184- </ ChainLink >
185- </ Button >
186- ) }
187175 </ div >
188176
189177 < div className = { cn ( 'mt-4 flex justify-center gap-4' , isError && 'mt-10' ) } >
@@ -192,14 +180,6 @@ export function SearcherBar({
192180 { isPending ? 'Searching...' : 'Search' }
193181 </ Button >
194182 </ div >
195-
196- { isConnected && (
197- < Button variant = "outline" className = "sm:hidden" asChild >
198- < ChainLink to = { `/address/${ userAddress } ?from=my_activity` } >
199- My activity
200- </ ChainLink >
201- </ Button >
202- ) }
203183 </ div >
204184 </ div >
205185 ) ;
0 commit comments