From e7bf6d0a599838ed14ab5e36739caf6173e687e0 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Tue, 9 Apr 2024 16:13:44 -0400 Subject: [PATCH] fix links --- src/components/DappBrowser/BrowserTab.tsx | 2 +- src/components/DappBrowser/Homepage.tsx | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/components/DappBrowser/BrowserTab.tsx b/src/components/DappBrowser/BrowserTab.tsx index 4dd3c508821..f0a8fbba6b2 100644 --- a/src/components/DappBrowser/BrowserTab.tsx +++ b/src/components/DappBrowser/BrowserTab.tsx @@ -770,7 +770,7 @@ export const BrowserTab = React.memo(function BrowserTab({ tabId, tabIndex, inje {isOnHomepage ? ( - + ) : ( { +const Card = ({ site, showMenuButton }: { showMenuButton?: boolean; site: TrendingSite }) => { const { isDarkMode } = useColorMode(); const { updateActiveTabState } = useBrowserContext(); @@ -59,12 +59,8 @@ const Card = ({ site, showMenuButton, tabId }: { showMenuButton?: boolean; site: ], }; - const handleOnPress = useCallback(() => { - updateActiveTabState({ url: normalizeUrl(site.url) }, tabId); - }, [site.url, tabId, updateActiveTabState]); - return ( - + updateActiveTabState({ url: normalizeUrl(site.url) })} scaleTo={0.9}> )} - + ); }; @@ -190,7 +186,7 @@ const Logo = ({ site }: { site: Omit }) => { return ( - updateActiveTabState({ url: site.url })}> + updateActiveTabState({ url: normalizeUrl(site.url) })}> {IS_IOS && !isEmpty(site.image) && ( @@ -255,7 +251,7 @@ const Logo = ({ site }: { site: Omit }) => { ); }; -export default function Homepage({ tabId }: { tabId: string }) { +export default function Homepage() { const { isDarkMode } = useColorMode(); const { favoriteDapps } = useFavoriteDappsStore(); @@ -296,7 +292,7 @@ export default function Homepage({ tabId }: { tabId: string }) { {trendingDapps.map(site => ( - + ))} @@ -336,7 +332,7 @@ export default function Homepage({ tabId }: { tabId: string }) { {trendingDapps.map(site => ( - + ))}