From d3838644e8899ee928ce55957e8c31e86d4e1ccd Mon Sep 17 00:00:00 2001 From: lianahus Date: Tue, 17 Sep 2024 12:36:29 +0200 Subject: [PATCH 1/2] fixing the link of learneth card in slider and adding matomo tracking --- .../src/lib/components/homeTabFeatured.tsx | 18 +++++++++--------- .../src/lib/components/homeTabFile.tsx | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libs/remix-ui/home-tab/src/lib/components/homeTabFeatured.tsx b/libs/remix-ui/home-tab/src/lib/components/homeTabFeatured.tsx index 30d99e2e8d..ef6af5a336 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabFeatured.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabFeatured.tsx @@ -13,7 +13,12 @@ export type HomeTabFeaturedProps = { function HomeTabFeatured(props:HomeTabFeaturedProps) { const themeFilter = useContext(ThemeContext) - + const handleStartLearneth = async () => { + await props.plugin.appManager.activatePlugin(['LearnEth', 'solidityUnitTesting']) + props.plugin.verticalIcons.select('LearnEth') + _paq.push(['trackEvent', 'hometab', 'featuredSection', 'LearnEth']) + await props.plugin.call('LearnEth', 'home') + } return (
@@ -66,9 +71,9 @@ function HomeTabFeatured(props:HomeTabFeaturedProps) {
- +
@@ -79,12 +84,7 @@ function HomeTabFeatured(props:HomeTabFeaturedProps) { { - await props.plugin.appManager.activatePlugin(['LearnEth', 'solidityUnitTesting']) - props.plugin.verticalIcons.select('LearnEth') - await props.plugin.call('LearnEth', 'home') - } - } + onClick={()=>handleStartLearneth()} > diff --git a/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx b/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx index a9ae7634c5..4e2d221a3d 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx @@ -169,7 +169,7 @@ function HomeTabFile({ plugin }: HomeTabFileProps) {
} tooltipTextClasses="border bg-light text-dark p-1 pr-3"> -